19.12.2017, 16:52
How i can resove this error?
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/Topg", true))
{
new string[128];
format(string, sizeof(string), "~Gang1~ %s GANG POINTS", PlayerInfo[Gang1]); // in this line there is a error
SendClientMessage(playerid, 0xFF0000FF,string);
return 1;
}
return 0;
}
C:\Users\DAVIDE\Desktop\server\filterscripts\gangs ystem.pwn(4 : error 017: undefined symbol "PlayerInfo"
C:\Users\DAVIDE\Desktop\server\filterscripts\gangs ystem.pwn(4 : error 017: undefined symbol "Gang1"
C:\Users\DAVIDE\Desktop\server\filterscripts\gangs ystem.pwn(4 : error 029: invalid expression, assumed zero
C:\Users\DAVIDE\Desktop\server\filterscripts\gangs ystem.pwn(4 : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/Topg", true))
{
new string[128];
format(string, sizeof(string), "~Gang1~ %s GANG POINTS", PlayerInfo[Gang1]); // in this line there is a error
SendClientMessage(playerid, 0xFF0000FF,string);
return 1;
}
return 0;
}
C:\Users\DAVIDE\Desktop\server\filterscripts\gangs ystem.pwn(4 : error 017: undefined symbol "PlayerInfo"
C:\Users\DAVIDE\Desktop\server\filterscripts\gangs ystem.pwn(4 : error 017: undefined symbol "Gang1"
C:\Users\DAVIDE\Desktop\server\filterscripts\gangs ystem.pwn(4 : error 029: invalid expression, assumed zero
C:\Users\DAVIDE\Desktop\server\filterscripts\gangs ystem.pwn(4 : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.