Error again(sry for too much posts about errors but i script)
#1

Код:
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]);
}
Reply
#2

Код:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)