expected token: ";", but found ")"
#1

Problem
Код:
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : error 012: invalid function call, not a valid address
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : warning 215: expression has no effect
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : error 001: expected token: ";", but found ")"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : error 029: invalid expression, assumed zero
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : fatal error 107: too many error messages on one line
http://i.imgur.com/H7pH7UN.png
Reply
#2

Quote:
Originally Posted by Jimmi
Посмотреть сообщение
Problem
Код:
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : error 012: invalid function call, not a valid address
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : warning 215: expression has no effect
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : error 001: expected token: ";", but found ")"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : error 029: invalid expression, assumed zero
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(11645) : fatal error 107: too many error messages on one line
http://i.imgur.com/H7pH7UN.png
Try removing "{" & "}" from line 11645.
Reply
#3

Quote:
Originally Posted by zT KiNgKoNg
Посмотреть сообщение
Try removing "{" & "}" from line 11645.
Yeah. Do it for line 11652 and other lines too.
Reply
#4

no its probably playerid(inputtext)

like wtf u cant have a function with same name as a variable
Reply
#5

http://imgur.com/YNuwG3o
Reply
#6

Quote:
Originally Posted by Jimmi
Посмотреть сообщение
i just told the answer. look one post up

just change the function name to something else
Reply
#7

i don't know
Reply
#8

Please paste the code down using the [code] BBCode, you do really think someone will re-write all of that for you?
Reply
#9

It's sad because you don't even need to search for this one, you just need to check the post exactly BELOW YOURS!

Reply
#10

Код:
if(dialogid == 982)
		{
		    switch (listitem)
		    {
				case 0: { SendRconCommand("gmx"); }
				case 1: { ShowPlayerDialog(playerid, 555, DIALOG_STYLE_INPUT, "{ee5555}KroNix: {FFFFFF}Language", "Introdu noua limba folosita de server:", "Ok", "Cancel"); }
				case 2: { ShowPlayerDialog(playerid, 554, DIALOG_STYLE_INPUT, "{ee5555}KroNix: {FFFFFF}Password", "Introdu noua parola:", "Ok", "Cancel"); }
				case 3: { ShowPlayerDialog(playerid, 556, DIALOG_STYLE_INPUT, "{ee5555}KroNix: {FFFFFF}Kick", "Introdu NUMELE jucatorului care va primi kick:", "Ok", "Cancel"); }
				case 4: { ShowPlayerDialog(playerid, 557, DIALOG_STYLE_INPUT, "{ee5555}KroNix: {FFFFFF}Ban", "Introdu NUMELE jucatorului care va primi ban ( PERMANENT ):", "Ok", "Cancel"); }
				case 5: { SendRconCommand("reloadbans"); }
			}
		}
		if(dialogid == 555)
		{
		    format(string, sizeof(string), "language %s", inputtext);
		    SendRconCommand(string);
		}
		if(dialogid == 554)
		{
			for(new i=0; i < MAX_PLAYERS; i++)
			{
			    if(i!=playerid) { Kick(i); }
		    }
		   	format(string, sizeof(string), "password %s", inputtext);
		}
		if(dialogid == 556)
		{
			if(playerid(inputtext) == -1) return SendClientMessage(playerid, COLOR_WHITE, "{ee5555}KroNix: {FFFFFF}Jucator invalid!");
			new id = playerid(inputtext);
			SendClientMessage(playerid, COLOR_WHITE, "{ee5555}KroNix: {FFFFFF}Jucatorul a primit kick!");
			Kick(id);
		}
  		if(dialogid == 557)
		{
			if(playerid(inputtext) == -1) return SendClientMessage(playerid, COLOR_WHITE, "{ee5555}KroNix: {FFFFFF}Jucator invalid!");
			new id = playerid(inputtext);
			SendClientMessage(playerid, COLOR_WHITE, "{ee5555}KroNix: {FFFFFF}Jucatorul a primit BAN PERMANENT!");
	        SendRconCommand("reloadbans");
			Ban(id);
		}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)