SA-MP Forums Archive
Not Defined when it is? - 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: Not Defined when it is? (/showthread.php?tid=542845)



Not Defined when it is? - HoboGamings - 22.10.2014

Hey, I am using NGG's crime system (not script) and there crime system is pCrime this is the error I get

pawn Код:
error 017: undefined symbol "pCrime"
Also these errors but I think it will fix if I fix that one ^

pawn Код:
error 029: invalid expression, assumed zero
error 010: invalid function or declaration
Ok so heres the place where them errors are popping up

pawn Код:
enum pCrime
{
    pBplayer[32],
    pAccusing[32],
    pAccusedof[32],
    pVictim[32],
};

new PlayerCrime[pCrime][MAX_PLAYERS];
Any help?


Re: Not Defined when it is? - Glossy42O - 22.10.2014

Ahmm if i am not wrong try new pCrime[MAX_PLAYERS];


AW: Not Defined when it is? - Mellnik - 22.10.2014

Код:
enum pCrime
{
    pBplayer[32],
    pAccusing[32],
    pAccusedof[32],
    pVictim[32]
};
new PlayerCrime[MAX_PLAYERS][pCrime];
What are you trying to save in these 32 sized arrays?
32 * 4 *4 * MAX_PLAYERS much memory.


Re: Not Defined when it is? - HoboGamings - 22.10.2014

Fixed that both ya help