SA-MP Forums Archive
undefined symbol "pInfo" I have tried everything - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: undefined symbol "pInfo" I have tried everything (/showthread.php?tid=92765)



undefined symbol "pInfo" I have tried everything - bubka3 - 22.08.2009

After searching and find no answers.... This my error
Quote:

C:\Users\Administrator\Desktop\samp02Xserver.win32 \gamemodes\b3gw.pwn(63) : error 017: undefined symbol "pInfo"
C:\Users\Administrator\Desktop\samp02Xserver.win32 \gamemodes\b3gw.pwn(63) : error 009: invalid array size (negative, zero or out of bounds)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Code I have
This line its say problem
Quote:

new PlayerInfo[MAX_PLAYERS][pInfo];

Yes I have,
Quote:

enum pInfo
{
pPassword[128],
pKills,
pDeaths,
pCash,
};

Please help!


Re: undefined symbol "pInfo" I have tried everything - pliva_sb - 22.08.2009

put this
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
below

Код:
enum pInfo
{
  pPassword[128],
  pKills,
  pDeaths,
  pCash
};



Re: undefined symbol "pInfo" I have tried everything - bubka3 - 22.08.2009

Wow, it works, how nice, cause of 1 misplaceing. Pff, atleast I got a working register/login system now
Thanks for helping me for like the 4th time.