Please help
#1

I was making a random messages script but i got some warnings:
Код:
C:\Users\Mouiz\Desktop\Updating\freeroam.pwn(537) : warning 235: public function lacks forward declaration (symbol "RandomMessage")
C:\Users\Mouiz\Desktop\Updating\freeroam.pwn(539) : warning 213: tag mismatch
Script:
Код:
enum ServerData
{
     Announce,
};
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
new Text:Announcements;

new RandomMessages[][] =
{
	"~w~Currently Updated To ~a~FR - FreeRoam Build 3 (0.3.7)",
	"~w~Want to get more features?~g~Donate To Become VIP At ~w~forum-mfe.webatu.com",
	"Join our community forum,stay updated. ~w~ Visit forum-mfe.webatu.com"
};

////////////////////////////////////////////////////////////////////////////////

public RandomMessage()
{
	if(ServerInfo[Announce] == 1)
 	TextDrawSetString(Announcements, RandomMessages[random(sizeof(RandomMessages))]);
 	return 1;
}
////////////////////////////////////////////////////////////////////////////////
Reply
#2

the comma ','
Код:
enum ServerData
{
     Announce,
};
Reply
#3

You also need to add
Код:
forward RandomMessage();
Reply
#4

Thanks guys,
Its fixed now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)