SA-MP Forums Archive
small problem - 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: small problem (/showthread.php?tid=347053)



small problem - Face9000 - 31.05.2012

This is the code:

pawn Code:
new const stock Float:bankrobberyPlaces[][10] =
{
     {"Test", {-1955.7682, 306.0241, 41.0471}}
};
This are the errors:

384: warning 213: tag mismatch
384: error 008: must be a constant expression; assumed zero

Line 384:

pawn Code:
{"Test", {-1955.7682, 306.0241, 41.0471}}
Thanks.


Re: small problem - $$inSane - 31.05.2012

try this, not sure it works :
pawn Code:
new const stock Float:bankrobberyPlaces[][10] =
{    
    {{-1955.7682, 306.0241, 41.0471}, "Text"}
};



Re: small problem - Face9000 - 31.05.2012

error 008: must be a constant expression; assumed zero


Re: small problem - MadeMan - 31.05.2012

pawn Code:
enum eRobbery
{
    rName[16],
    Float:rPos[3]
};
new bankrobberyPlaces[][eRobbery] =
{
     {"Test", {-1955.7682, 306.0241, 41.0471}}
};