Error Command 4
#1

Код:
C:\Users\pawno\include\PPC_PlayerCommands.inc(5057) : error 003: declaration of a local variable must appear in a compound block
C:\Users\\pawno\include\PPC_PlayerCommands.inc(5057) : error 017: undefined symbol "id"
C:\Users\pawno\include\PPC_PlayerCommands.inc(5057) : warning 215: expression has no effect
C:\Users\pawno\include\PPC_PlayerCommands.inc(5057) : error 001: expected token: ";", but found "]"
C:\Users\pawno\include\PPC_PlayerCommands.inc(5057) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Код:
CMD:ip(playerid, params[])
{
        if (APlayerData[playerid][PlayerLevel] >= 1)
	new id,ip[17],string[65];
	if(PInfo[playerid][Level] < 2) return SendClientMessage(playerid,red,error);
	if(sscanf(params,"u",id)) return SendClientMessage(playerid,"USAGE:/ip <id/name>");
	GetPlayerIp(id,ip,17);
	format(string,sizeof(string),"%s(ID:%d)'s IP: %s",GetPName(id),id,ip);
	SendClientMessage(playerid,green2,string);
	return 1;
}
Reply


Messages In This Thread
Error Command 4 - by DerickClark - 25.01.2013, 23:19
Re: Error Command 4 - by Roach_ - 25.01.2013, 23:37
Re: Error Command 4 - by DerickClark - 25.01.2013, 23:40
Re: Error Command 4 - by Roach_ - 25.01.2013, 23:42
Re: Error Command 4 - by DerickClark - 25.01.2013, 23:43
Re: Error Command 4 - by Roach_ - 25.01.2013, 23:45
Re: Error Command 4 - by ThePhenix - 26.01.2013, 00:45
Re: Error Command 4 - by DerickClark - 26.01.2013, 00:50
Re: Error Command 4 - by b0b - 26.01.2013, 00:54
Re: Error Command 4 - by DerickClark - 26.01.2013, 03:20

Forum Jump:


Users browsing this thread: 4 Guest(s)