07.08.2010, 23:49
i got this error:
Код:
C:\Users\Administrator\Desktop\Legends Gaming RP\pawno\system.pwn(107) : error 017: undefined symbol "PlayerInfo" C:\Users\Administrator\Desktop\Legends Gaming RP\pawno\system.pwn(107) : warning 215: expression has no effect C:\Users\Administrator\Desktop\Legends Gaming RP\pawno\system.pwn(107) : error 001: expected token: ";", but found "]" C:\Users\Administrator\Desktop\Legends Gaming RP\pawno\system.pwn(107) : error 029: invalid expression, assumed zero C:\Users\Administrator\Desktop\Legends Gaming RP\pawno\system.pwn(107) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/acmds", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_GRAD1, " Commands coming soon ....");
return 1;
}
}
return 1;
}
return 0;
}