/announce command with ZCMD -.-
#5

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..
Reply


Messages In This Thread
/announce command with ZCMD -.- - by Armqus_FIN - 28.11.2011, 13:27
Re: /announce command with ZCMD -.- - by SmiT - 28.11.2011, 13:30
Re: /announce command with ZCMD -.- - by Armqus_FIN - 28.11.2011, 13:38
Re: /announce command with ZCMD -.- - by Kostas' - 28.11.2011, 13:38
Re: /announce command with ZCMD -.- - by Armqus_FIN - 28.11.2011, 13:42
Re: /announce command with ZCMD -.- - by Kostas' - 28.11.2011, 13:45
Re: /announce command with ZCMD -.- - by |_ⒾⓇⓄN_ⒹⓄG_| - 28.11.2011, 13:49
Re: /announce command with ZCMD -.- - by ellyx - 28.11.2011, 13:54
Re: /announce command with ZCMD -.- - by Armqus_FIN - 28.11.2011, 14:09
Re: /announce command with ZCMD -.- - by Kostas' - 28.11.2011, 14:10

Forum Jump:


Users browsing this thread: 2 Guest(s)