SA-MP Forums Archive
[HELP]Pawno Error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Pawno Error (/showthread.php?tid=98422)



[HELP]Pawno Error - Michi665 - 20.09.2009

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


Re: [HELP]Pawno Error - UsaBoy91 - 20.09.2009

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}


Re: [HELP]Pawno Error - Michi665 - 20.09.2009

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



Re: [HELP]Pawno Error - » sTeVe - 20.09.2009

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