Help script
#1

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.
Reply
#2

PlayerInfo enum
please all
Reply
#3

This is what you get if you copy commands from other scripts without knowing what you are doing.
If i am wrong, paste your enum playerinfo as EmpireSK said above.
Reply
#4

What about to try
Код:
PlayerInfo[playerid][Gang1]
??
I didn't see the enum, so that's it.. If I'm saying wrong, sorry.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)