News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - wzrd

#1
/*Ushtrim i thjesht ku mbledhim 3 numrat e pare, i zbresim te katertin dhe
 * shohim rezultatin
 */
import java.util.Scanner;
public class Mbledhje {
   public static void main (String args [] )
   {
      Scanner input = new Scanner (System.in);
      //Fillojm edhe thjesht therrasim disa variabila pa u dhene vlerat
      int a;
      int b;
      int c;
      int d;
      int rezultati;
      System.out.println("**********************");//per estetik
      System.out.print ("Fut numrin e pare:");
      a = input.nextInt();
      System.out.print ("Fut numrin e dyte:");
      b = input.nextInt();
      System.out.print ("Fut numrin e trete:");
      c = input.nextInt();
      System.out.print("Fusim numrin e fundit:");
      d = input.nextInt();
      rezultati = ( a + b + c - d );
/*Rezultati ne kete rast eshte nje menyre per zgjedhjen e problemit dhe me te
 * mund te bejm shume lloje veprimesh si + , - , / , * , mjafton te ndryshojm
 * shenjat tek rezultati dhe mund te kontrollojm veprimet.
 */
      System.out.printf("Rezultati eshte %d\n", rezultati);
      System.out.println("**********************");//per estetik
   }
   
}
#2
PasteBin / SQL error
Jan 11, 2009, 06:57 PM
Hi there, first of all it's just a great script, and i really love it.
Sow keep it up :)
Second, i'm using smf 1.1.7  :) with wordpress (different db)
sow
root dir /wordpress/
smf dir /wordpress/smf
pastebin dir /wordpress/pastebin
And i'm using a non default template but there is no problem with the paths and the settings file.. (i think)
When i go to the pastebin/index.php
It gives me the following error..
Notice: Undefined variable: file in /fullpath/pastebin/index.php on line 487
And this is the sql error

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '}topics AS t
WHERE t.ID_BOARD = {int:paste_board}
ORDER BY id_last_msg DES' at line 2


PS, i'm not using english language, but i'v just modified the language/index.english.php file

Can we fix this error ?