SA-MP Forums Archive
[Ajuda] Portгo cativeiro nгo fecha - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Portгo cativeiro nгo fecha (/showthread.php?tid=378910)



Portгo cativeiro nгo fecha - Amt. - 19.09.2012

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;
    }



Re: Portгo cativeiro nгo fecha - Q.I - 19.09.2012

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.


Re: Portгo cativeiro nгo fecha - Amt. - 19.09.2012

Vlw, resolvi o problema