18.08.2012, 07:12
I have read all the instructions, but when I compile I get Errors!!!:
Here is the filterscript Filterscript:
Код:
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"
Код:
#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; }