small problem
#1

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.
Reply
#2

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

error 008: must be a constant expression; assumed zero
Reply
#4

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


Forum Jump:


Users browsing this thread: 2 Guest(s)