One Little Problem...
#1

I have this code from XAdmin:
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) new string[256], name[24]; GetPlayerName(playerid,name,24); format(string,256,"%s has slapped everyone",name);
But I get these errors on this line:
Code:
XAdmin.pwn(368) : error 003: declaration of a local variable must appear in a compound block
XAdmin.pwn(368) : error 017: undefined symbol "string"
XAdmin.pwn(368) : warning 215: expression has no effect
XAdmin.pwn(368) : error 001: expected token: ";", but found "]"
XAdmin.pwn(368) : fatal error 107: too many error messages on one line
Can anyone help?
Reply


Messages In This Thread
One Little Problem... - by Tigerbeast11 - 22.08.2011, 15:28
Re: One Little Problem... - by Darnell - 22.08.2011, 15:29
Re: One Little Problem... - by Tigerbeast11 - 22.08.2011, 15:36
Re: One Little Problem... - by Dragony92 - 22.08.2011, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)