Error again(sry for too much posts about errors but i 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 again(sry for too much posts about errors but i script) (
/showthread.php?tid=466584)
Error again(sry for too much posts about errors but i script) -
denniser8 - 28.09.2013
Код:
C:\Users\Dennis Laptop\Desktop\latw.pwn(68) : error 001: expected token: ";", but found "forward"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
here is it ^^^
and here the CODE
Код:
new RandomMSG[][] =
{
">> Advertise our server ONLY to special SERVER ad posts!(AD TO OTHER SERVERS IS BANABLE)",
">> Invite your friends here!Its a new server!You may win prizes!",
">> Join us and help us improve!http://denniser8.wix.com/eastsidegangwars!"
}
forward SendMSG(); //error here
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(COLOR_ORANGE, RandomMSG[randMSG]);
}
Re: Error again(sry for too much posts about errors but i script) -
gtakillerIV - 28.09.2013
Код:
new RandomMSG[][] =
{
">> Advertise our server ONLY to special SERVER ad posts!(AD TO OTHER SERVERS IS BANABLE)",
">> Invite your friends here!Its a new server!You may win prizes!",
">> Join us and help us improve!http://denniser8.wix.com/eastsidegangwars!"
}
Should be:
Код:
new RandomMSG[][] =
{
">> Advertise our server ONLY to special SERVER ad posts!(AD TO OTHER SERVERS IS BANABLE)",
">> Invite your friends here!Its a new server!You may win prizes!",
">> Join us and help us improve!http://denniser8.wix.com/eastsidegangwars!"
}; // You forgot this semi-colon.
When you get a missing ";" it's usually at the line
before the one that the compiler says it is at.