[Ajuda] BUG!
#1

OLБ, BOA NOITE A TODOS, ESTOU COM UM PROBLEMA NO TERRITУRIO QUE EU FIZ, QUANDO EU VOU NELE O COMANDO /DO NГO FUNCIONA! APARECE: VOCК NГO ESTБ EM NENHUM TERRITУRIO! NГO SEI O QUE TEM DE ERRADO!

Код:
else if(OrgID == 3 || OrgID == 27){//Exйrcito/Piratas
        if(IsPlayerInHidre(playerid))
        {
                if(Dominando[playerid] == 1) return SendClientMessage(playerid, 0x12900BBF, "Vocк ja estб dominando um territorio.");
	    		if(GuerranaHidre == 1) return SendClientMessage(playerid, 0x12900BBF, "Jб estб tendo uma guerra nesse territorio.");
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, sizeof(string), "%s %s estгo dominando a MATA!",playername,NomeORGTr(OrgID));
				SendClientMessageToAll(OrgCor(OrgID), string);
			    SendClientMessage(playerid, 0x12900BBF, "Fique esperto os Inimigos foram avisados!");
			    SendClientMessage(playerid, 0x12900BBF, "Espere 30 segundos para dominar estб area .");
                GangZoneFlashForAll(GZHidre,OrgCor(OrgID));
                Dominando[playerid] = 1;
                ProvocoHidre[playerid] = 1;
                GuerranaHidre = 1;
        		TempoGuerraHidre = SetTimerEx("GuerraHidre", 30000, 0, "i", playerid);
				return 1;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhum territуrio!");
			}
		}

public GuerraHidre(playerid)
{
        new string[128], playername[MAX_PLAYER_NAME], OrgID = GetPlayerOrg(playerid);
	    if(ProvocoHidre[playerid] == 1)
		{
			if(IsPlayerInHidre(playerid))
			{
			    GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, sizeof(string), "%s %s Dominaram a Hidrelйtrica ",playername,NomeORGTr(OrgID));
				SendClientMessageToAll(OrgCor(OrgID), string);
				SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou a Hidrelйtrica, Mantenha ele em Controle e Ganharб Grana.");
				GangZoneStopFlashForAll(GZHidre);
				GangZoneShowForAll(GZHidre,OrgCor(OrgID));
				Dominando[playerid] = 0;
				ProvocoHidre[playerid] = 0;
				GuerranaHidre = 0;
				donoHidre = OrgID;
				KillTimer(TempoGuerraHidre);
				return 1;
			}
			else
			{
				SendClientMessage(playerid, COR_GRO, "Vocк nгo estб na Hidrelйtrica.");
				Dominando[playerid] = 0;
				GangZoneStopFlashForAll(GZHidre);
				GangZoneShowForAll(GZHidre, OrgCor(OrgID));
				ProvocoHidre[playerid] = 0;
				GuerranaHidre = 0;
				donoHidre = 0;
				KillTimer(TempoGuerraHidre);
				return 1;
			}
		}
		return 1;
}
Reply
#2

alguem da uma forзa ae !
Reply
#3

O erro estб aqui
PHP код:
IsPlayerInHidre(playerid
Mande-nos isso.
Reply
#4

Код:
stock IsPlayerInHidre(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(x >= -591.7480 && y >= 1805.1368 && x <= -817.9867 && y <= 2048.1484) return 1;
    else return 0;
}

GZHidre = GangZoneCreate(-591.7480, 1805.1368, -817.9867, 2048.1484);
Reply
#5

Alguem da uma forзa ae por favor !!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)