[HELP]Pawno Error
#1

I have 2 Errors for this:

new Objects[][object_info] = {
{11111, 1426.8864, -2497.1648, 23.3797, 315.3093, 0.0000, 269.7591, 500.0},
};

D:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\freeroamN.pwn(203) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\freeroamN.pwn(203) : error 008: must be a constant expression; assumed zero

Whats wrong here?
What i must change?

Pls Help
Reply
#2

delete the comma ( , )

{11111, 1426.8864, -2497.1648, 23.3797, 315.3093, 0.0000, 269.7591, 500.0},

must be

{11111, 1426.8864, -2497.1648, 23.3797, 315.3093, 0.0000, 269.7591, 500.0}
Reply
#3

Now its so:
new Objects[][object_info] = {
{11111, 1426.8864, -2497.1648, 23.3797, 315.3093, 0.0000, 269.7591, 500.0}
};

And i get 4 Errors:

D:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\freeroamN.pwn(270) : error 001: expected token: ")", but found "["
D:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\freeroamN.pwn(270) : error 029: invalid expression, assumed zeroD:\Program Files\Rockstar D:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\freeroamN.pwn(270) : error 001: expected token: ";", but found "]"
D:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\freeroamN.pwn(270) : fatal error 107: too many error messages on one line
Reply
#4

pawn Код:
new Objects[1][object_info] = {
{11111, 1426.8864, -2497.1648, 23.3797, 315.3093, 0.0000, 269.7591, 500.0}
};
Should be correct ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)