Why i getting few errors? - 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: Why i getting few errors? (
/showthread.php?tid=455404)
Why i getting few errors? -
Tuntun - 01.08.2013
Why i getting this error
Код:
D:\Trucking\gamemodes\Beta.pwn(11) : error 017: undefined symbol "pInfo"
D:\Trucking\gamemodes\Beta.pwn(11) : error 009: invalid array size (negative, zero or out of bounds)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
I have added this:
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Re: Why i getting few errors? -
Necip - 01.08.2013
Is the enum's name pInfo? I mean is it like this
Or like this
Re: Why i getting few errors? -
Jrwestcoast - 01.08.2013
I think you have it backards...
Код:
new pInfo[MAX_PLAYERS][PlayInfo];
Re: Why i getting few errors? -
Tuntun - 01.08.2013
Yes... because i'm making a register system so..
Re: Why i getting few errors? -
Jrwestcoast - 01.08.2013
Well do you have pInfo defined?
Re: Why i getting few errors? -
Tuntun - 01.08.2013
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
#define PlayerInfo[MAX_PLAYERS] [pInfo]
Re: Why i getting few errors? -
JimmyCh - 01.08.2013
Noo use it like this:
pawn Код:
enum pInfo
{
// ur shit here
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Re: Why i getting few errors? -
Tuntun - 01.08.2013
Well your wrong... i have fixed it by removing the #define and i added like you.. i added the new thing under of the enums and could you help me? after i register its not save and my screen is not move... i mean i can only move but my screen dose not move.