warning 213: tag mismatch
#8

I am posting whole script... I hope it will be possible to fix..

Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define FILTERSCRIPT
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" FS Announce by DeVix");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}
#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/lfevent", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 1000000);
		SetPlayerArmour(playerid, 100.0);
		return 1;
	}
	if (strcmp("/maverick", cmdtext, true, 10) == 0)
	{
	    new vehicleid = GetPlayerVehicleID(playerid);
		SetVehicleHealth(vehicleid, 1000000);
		return 1;
	}
	return 0;
}

CMD:announce(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))
		return SendClientMessage(playerid, 0xFF0000FF, "You are not allowed to use this command!");

    new text[128], time, style;
    if (sscanf(params, "iis[128]", style, time, text)) return
        SendClientMessage(playerid, 0xFF0000FF, "Usage: /announce <style[0-6]> <time in ms> <text>");
    if (!strlen(text) > 64) return
        SendClientMessage(playerid, 0xFF0000FF, "Message too long please shorten it!");
    if(style == 2) return SendClientMessage(playerid, 0xFF0000FF, "Bug with style 2 don't use it!");
    if (style < 0 || style > 6) return
        SendClientMessage(playerid, 0xFF0000FF,"Invalid style!");
    if (time > 20*1000) return
        SendClientMessage(playerid, 0xFF0000FF, "No longer than 20 seconds!");
    GameTextForAll(text, time, style);
    return 1;
}
Reply


Messages In This Thread
warning 213: tag mismatch - by algebrodand - 29.12.2014, 21:01
Re: warning 213: tag mismatch - by jackx3rx - 29.12.2014, 21:06
Re: warning 213: tag mismatch - by SickAttack - 29.12.2014, 21:07
Re: warning 213: tag mismatch - by algebrodand - 29.12.2014, 21:15
Re: warning 213: tag mismatch - by CalvinC - 29.12.2014, 21:23
Re: warning 213: tag mismatch - by algebrodand - 29.12.2014, 21:26
Re: warning 213: tag mismatch - by jackx3rx - 29.12.2014, 21:31
Re: warning 213: tag mismatch - by algebrodand - 29.12.2014, 21:40
Re: warning 213: tag mismatch - by SickAttack - 29.12.2014, 21:45
Re: warning 213: tag mismatch - by algebrodand - 29.12.2014, 21:47

Forum Jump:


Users browsing this thread: 1 Guest(s)