[Ajuda] Portгo cativeiro nгo fecha
#1

Quando eu abro o portгo do cativeiro ele nгo fecha.

Код:
if(strcmp(cmd, "/Cativeiro", true) == 0)
    {
        new org = GetPlayerOrg(playerid);
		GetPlayerName(playerid,playername,sizeof(playername));
		if ((org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 13 || org == 12 || org == 15 || org == 6 || org == 21 || org == 23) && PlayerToPoint(20.0, playerid,2349.23168945,-659.26922607,125.21961975))
	    {
			MoveObject(Portaocat, 2349.231689,-659.269226,118.219619,3);
			GameTextForPlayer(playerid, "~w~Cativeiro~n~~b~Aberto", 5000, 3);
			SetTimer("Portaogcatandando",5000, false);
		}
		return true;
    }
Reply
#2

Quote:
Originally Posted by Amt.
Посмотреть сообщение
Quando eu abro o portгo do cativeiro ele nгo fecha.

Код:
if(strcmp(cmd, "/Cativeiro", true) == 0)
    {
        new org = GetPlayerOrg(playerid);
		GetPlayerName(playerid,playername,sizeof(playername));
		if ((org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 13 || org == 12 || org == 15 || org == 6 || org == 21 || org == 23) && PlayerToPoint(20.0, playerid,2349.23168945,-659.26922607,125.21961975))
	    {
			MoveObject(Portaocat, 2349.231689,-659.269226,118.219619,3);
			GameTextForPlayer(playerid, "~w~Cativeiro~n~~b~Aberto", 5000, 3);
			SetTimer("Portaogcatandando",5000, false);
		}
		return true;
    }
esse seu codigo esta chamando outro public que no caso e (Portaogcatandando) procure lah e reveja as coodernadas ou simplesmente refaзa o codigo do 0.
Reply
#3

Vlw, resolvi o problema
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)