[Tutorial] Making a /announce command in ZCMD and sscanf
#17

I have read all the instructions, but when I compile I get Errors!!!:
Код:
C:\Users\Adonay\Desktop\samp03e_svr_R2_win32TEST\filterscripts\announce.pwn(1) : fatal error 100: cannot read from file: "zcmd" C:\Users\Adonay\Desktop\samp03e_svr_R2_win32TEST\filterscripts\announce.pwn(1) : fatal error 100: cannot read from file: "sscanf"
Here is the filterscript Filterscript:
Код:
#include <a_samp>
#include <zcmd>
#include <sscanf>

CMD:announce(playerid, params[])
{

    if(IsPlayerAdmin(playerid))
		return SendClientMessage(playerid, "You are not allowed to use this command");

    new text[64], time, style;
    if (sscanf(params, "iis[64]", style, time, text)) return
        SendClientMessage( playerid,"Usage: /announce <style[0-6]> <time in ms> <text>");

    if (strlen(text) > 64) return
        SendClientMessage(playerid,"Message too long please shorten it ");

    if(style == 2) return SendClientMessage(playerid,"Bug with style 2 don't use it!");

    if (style < 0 || style > 6) return
        SendClientMessage(playerid,0x854900FF,"Invalid style");

    if (time > 20*1000) return
        SendClientMessage(playerid,"No longer than 20 seconds");

    GameTextForAll(text, time, style);

    return true;
}
Reply


Messages In This Thread
Making a /announce command in ZCMD and sscanf - by §с†¶e®РµРe - 17.11.2011, 09:00
Re: Making a /announce command in ZCMD and sscanf - by Kostas' - 17.11.2011, 09:28
Re: Making a /announce command in ZCMD and sscanf - by §с†¶e®РµРe - 17.11.2011, 10:55
Re: Making a /announce command in ZCMD and sscanf - by Astralis - 19.11.2011, 20:09
Re: Making a /announce command in ZCMD and sscanf - by Tanush123 - 25.11.2011, 21:31
Re: Making a /announce command in ZCMD and sscanf - by §с†¶e®РµРe - 26.11.2011, 02:48
Re: Making a /announce command in ZCMD and sscanf - by Kuddie - 29.11.2011, 15:13
Re: Making a /announce command in ZCMD and sscanf - by Tanush123 - 30.11.2011, 02:44
Re: Making a /announce command in ZCMD and sscanf - by Rudy_ - 30.11.2011, 12:42
Re: Making a /announce command in ZCMD and sscanf - by §с†¶e®РµРe - 10.12.2011, 04:28
Re: Making a /announce command in ZCMD and sscanf - by BlackRolePlay - 10.12.2011, 18:17
Re: Making a /announce command in ZCMD and sscanf - by §с†¶e®РµРe - 11.12.2011, 03:38
Re: Making a /announce command in ZCMD and sscanf - by =WoR=G4M3Ov3r - 11.12.2011, 12:07
Re: Making a /announce command in ZCMD and sscanf - by ComiGF - 21.12.2011, 13:39
Re: Making a /announce command in ZCMD and sscanf - by §с†¶e®РµРe - 01.01.2012, 14:32
Re: Making a /announce command in ZCMD and sscanf - by $$inSane - 06.05.2012, 03:11
Re: Making a /announce command in ZCMD and sscanf - by xMaGmOtAnEtHx - 18.08.2012, 07:12
Re: Making a /announce command in ZCMD and sscanf - by im - 18.08.2012, 07:53

Forum Jump:


Users browsing this thread: 1 Guest(s)