Error could not compile! +REP - 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 could not compile! +REP (
/showthread.php?tid=502358)
Error could not compile! +REP -
Gamo - 23.03.2014
I get this error when I compile the script..
Код:
D:\FunGaming Stunt-Freeroam\gamemodes\cod-e.pwn(632) : error 029: invalid expression, assumed zero
D:\FunGaming Stunt-Freeroam\gamemodes\cod-e.pwn(632) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Here is the line and some lines above it..
Код:
new RandomMessages[][] = {
""cgreen"********************",
""cgreen"********************",
""cgreen"********************.",
""cgreen"********************!",
""cgreen"********************.",
""cgreen"********************",
""cgreen"********************",
""cgreen"********************",
""cgreen"********************",
""cgreen"********************",
""cgreen"********************",
""cgreen"********************",
""cgreen"********************",
};
Help plz +REP
Re: Error could not compile! +REP -
aboa - 23.03.2014
pawn Код:
new RandomMessages[][] = {
"********************",
"********************",
"********************.",
"********************!",
"********************.",
"********************",
"********************",
"********************",
"********************",
"********************",
"********************",
"********************",
""********************"
};
Re: Error could not compile! +REP -
Equuuuin0X - 23.03.2014
Use code above
next time when you make randommessages.
dont forget to remove '','' at the end of the last random message.
Re: Error could not compile! +REP -
FrakyX - 23.03.2014
Yea remove the comma at the last line and remove the space before '};'. aboa is right!