error 009, 001 in group - faction script - 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: error 009, 001 in group - faction script (
/showthread.php?tid=446664)
error 009, 001 in group - faction script -
Jerryosswest - 26.06.2013
C:\Users\Jerry\Desktop\SWAT SERVER\gamemodes\bare.pwn(30) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Jerry\Desktop\SWAT SERVER\gamemodes\bare.pwn(34) : error 001: expected token: "-identifier-", but found "-integer value-"
new Cars[TeamCars];
enum TeamCars
{
CIVILIAN,
lapd
}
Re: error 009, 001 in group - faction script -
arakuta - 26.06.2013
You should put that enum ABOVE that variable. Because you can't use something that ins't created yet.
pawn Код:
enum TeamCars
{
CIVILIAN,
LAPD
}
new Cars[TeamCars];
Re: error 009, 001 in group - faction script -
Jerryosswest - 27.06.2013
Код:
C:\Users\Jerry\Desktop\SWAT SERVER\gamemodes\bare.pwn(32) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Jerry\Desktop\SWAT SERVER\gamemodes\bare.pwn(36) : error 009: invalid array size (negative, zero or out of bounds)
Seems like it just turned around, any ideas?