undefinied simble
#1

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];
Reply
#2

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];
Reply
#3

now i got 25 errors :/

BTW can you help me because all the "CMD" in my GM arent working
Reply
#4

Post your errors/questions here. I'll try to help you.
Reply
#5

I got no errors (in my GM) but alll the commands with "CMD" arent working
Reply
#6

Show us the code. The part of code with the "pInfo" to see where did you use it.
Reply
#7

check your inbox...
Reply
#8

Not sure if this is your case, but everything you use in your PlayerInfo like PlayerInfo[playerid][money] should be in the enum.
Reply
#9

He used the enum under the variable
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)