SA-MP Forums Archive
[HELP] Object Errors - 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] Object Errors (/showthread.php?tid=120838)



[HELP] Object Errors - Tom Coop - 13.01.2010

Why can't I delete all of the objects?

If I do, this will remain after all objects are deleted:

Quote:

new Objects[][object_info] = {
};

And the errors:

Quote:

C:\Users\Tom\Desktop\Freeroam\gamemodes\freeroam.p wn(202) : error 029: invalid expression, assumed zero
C:\Users\Tom\Desktop\Freeroam\gamemodes\freeroam.p wn(202) : error 008: must be a constant expression; assumed zero
C:\Users/Tom\Desktop\Freeroam\gamemodes\freeroam.pwn(263) : error 001: expected token: ")", but found "["
C:\Users\Tom\Desktop\Freeroam\gamemodes\freeroam.p wn(263) : error 029: invalid expression, assumed zero
C:\Users\Tom\Desktop\Freeroam\gamemodes\freeroam.p wn(263) : warning 215: expression has no effect
C:\Users\Tom\Desktop\Freeroam\gamemodes\freeroam.p wn(263) : error 001: expected token: ";", but found "]"
C:\Users\Tom\Desktop\Freeroam\gamemodes\freeroam.p wn(263) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

6 Errors.

And if I have this still there, and 2 objects:

Quote:

new Objects[][object_info] = {
{3055, 230.6800, -1910.7400, 0.4500, 90.0000, 0.0000, 0.0000, 500.0}, //jetmax
{3055, 222.8500, -1910.7500, 0.4600, 90.0000, 0.0000, 0.0000, 500.0} //jetmax
};

It works..



Re: [HELP] Object Errors - Tom Coop - 13.01.2010

Anyone?


Re: [HELP] Object Errors - Mikep. - 13.01.2010

Why would you have an array with nothing in it..?


Re: [HELP] Object Errors - Tom Coop - 13.01.2010

What?


Re: [HELP] Object Errors - Tom Coop - 13.01.2010

I'd be really happy if someone could help me.


Re: [HELP] Object Errors - KnooL - 13.01.2010

Don't bump within 12 hours. This makes you look like a 'special' guy who can break the forum rules, which you aren't. So stick with the forum rules and be patience.


Re: [HELP] Object Errors - Tom Coop - 13.01.2010

Well I'm sorry, but I'm leaving on friday for 1 months and I'd like to get it done before then. So it's quite urgent.


Re: [HELP] Object Errors - KnooL - 13.01.2010

more haste, less speed. well good luck with it.


Re: [HELP] Object Errors - CaHbKo - 13.01.2010

PAWN doesn't like your script because you created an empty array. It has nothing in it, so it is completely useless.

Try putting /* at the first line and */ at the last if you want just to make it for future use and remove them if you need to use it.