Quote:
Originally Posted by Kostas'
Your fogot the color on sendclientmessage.
pawn Код:
COMMAND:announce(playerid, params[]) { new text[64], time, style; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR,"Only RCON Adminstrator can use this!"); else if (sscanf(params, "iis[64]", style, time, text)) return SendClientMessage(playerid,COLOR,"Usage: /announce <style[0-6]> <time in ms> <text>"); else if (strlen(text) > 64) return SendClientMessage(playerid,COLOR,"Message too long, please make it with less than 64 letters!"); else if (style == 2) return SendClientMessage(playerid,COLOR,"Bug with style 2! Do not use it!"); else if (style < 0 || style > 6) return SendClientMessage(playerid,0x854900FF,"Invalid style"); else if (time > 20*1000) return SendClientMessage(playerid, COLOR,"No longer than 20 seconds"); else { GameTextForAll(text, time, style); } return 1; }
|
When I put these it says they are Undefined Symbol if I compile..