SA-MP Forums Archive
Help Please :( - 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 Please :( (/showthread.php?tid=129333)



Help Please :( - Nickg - 21.02.2010

this code works but it still teles the player
e.g
if someone goes in the subway it is then identified that there is a player on the subway
but it still teles the player
Код:
for(new i; i < MAX_PLAYERS; i++)
	{ 																			//2
		if(IsPlayerInRangeOfPoint(i, 1.0, 256.9511,1802.0492,7.5494))
		{ 																		//3
			SetPlayerPos(i,2543.2554,-1306.0792,1025.0703 );
			SetPlayerInterior(i, 2);
		}																		// ! This here bracket was missing, you opened a third bracket and didn't close it.
		else if(IsPlayerInRangeOfPoint(i, 1.0, 1685.9564,964.1009,10.7590))
		{																		// Four
			if(IsInSubwayTrain[i] == false)
			{ 					//2543.2554,-1306.0792,1025.0703
SetPlayerPos(i, 1726.8531,958.1580,-66.2811);
MoveObject(monotrain, 1727.0046,-1054.0931,-66.5000, 30.00);
IsInSubwayTrain[i] = true;
			}
			else if(IsInSubwayTrain[i] == true)
			{
     TextDrawShowForPlayer(i,sub);
     TextDrawShowForPlayer(i,sub2);
 SetTimer("Subtext",6000,false);



Re: Help Please :( - Onyx09 - 21.02.2010

what do you mean i dont get what you are trying to say?


Re: Help Please :( - Nickg - 21.02.2010

Quote:
Originally Posted by [GM
LeGenDy ]
what do you mean i dont get what you are trying to say?
Problem solved, Wayy too many timers (that needs to be fixed )