undefinied simble - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefinied simble (
/showthread.php?tid=308771)
undefinied simble -
Gooday - 05.01.2012
hi i got:
Quote:
C:\Users\Luca\Desktop\Server209\filterscripts\CarC on.pwn(21) : error 017: undefined symbol "pInfo"
C:\Users\Luca\Desktop\Server209\filterscripts\CarC on.pwn(21) : error 009: invalid array size (negative, zero or out of bounds)
|
but i got:
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Re: undefinied simble -
Norck - 05.01.2012
I'm pretty sure that pInfo is supposed to be an enum. I'm not sure why are you trying to declare this array if you don't have pInfo.
Anyway, you should have something like this to prevent these errors:
pawn Код:
enum pInfo
{
pValue1,
pValue2
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Re: undefinied simble -
Gooday - 05.01.2012
now i got 25 errors :/
BTW can you help me because all the "CMD" in my GM arent working
Re: undefinied simble -
Norck - 05.01.2012
Post your errors/questions here. I'll try to help you.
Re: undefinied simble -
Gooday - 05.01.2012
I got no errors (in my GM) but alll the commands with "CMD" arent working
Re: undefinied simble -
Konstantinos - 05.01.2012
Show us the code. The part of code with the "pInfo" to see where did you use it.
Re: undefinied simble -
Gooday - 05.01.2012
check your inbox...
Re: undefinied simble -
FuTuяe - 05.01.2012
Not sure if this is your case, but everything you use in your PlayerInfo like PlayerInfo[playerid][money] should be in the enum.
Re: undefinied simble -
Konstantinos - 05.01.2012
He used the enum under the variable
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];