28.05.2015, 16:15
I was making a random messages script but i got some warnings:
Script:
Код:
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
Код:
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; } ////////////////////////////////////////////////////////////////////////////////