SA-MP Forums Archive
Help with loop? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with loop? (/showthread.php?tid=77799)



Help with loop? - Blt950 - 14.05.2009

Hey! I have some problem that player that comes to last checkpoint gets an repating sound from normal chekpoint and not the other song that shuld come on. And the normal checkpoint sound just repates, and nothing more happens, no message that i sat... And the checkpoint wont desipare.

Код:
public OnPlayerEnterCheckpoint(playerid)
{
......
else if(PlayerToPoint(3.0,playerid, 101.5558,1109.0941,13.3416))
	{
		DisablePlayerCheckpoint(playerid);
		SetPlayerCheckpoint(playerid, 101.5581,1109.1292,13.3365, 3.0);
		PlayerPlaySound(playerid, 1149, X, Y, Z);
	}
	else if(PlayerToPoint(3.0,playerid, 101.5581,1109.1292,13.3365))
	{
   	      DisablePlayerCheckpoint(playerid);
		SetTimer("CheckDMV",10000,false);
		SendClientMessage(playerid, TEAM_ORANGE, "* Waiting for response...");
		TogglePlayerControllable(playerid, false);
		return 1;
	}



Re: Help with loop? - MenaceX^ - 14.05.2009

Floats are alsmot the same if I look well.