Code help, maybe lagg?
#1

Код:
		else if(IsPlayerInRangeOfPoint(i, 1.0, 1685.9564,964.1009,10.7590))
		{																		// Four
			if(IsInSubwayTrain[i] == false)
			{ 					//2543.2554,-1306.0792,1025.0703
IsInSubwayTrain[i] = true;
SetPlayerPos(i, 1726.8531,960.1580,-66.2811);
MoveObject(monotrain, 1727.0046,-1054.0931,-66.5000, 15.00);//1725.5785
SetPlayerCameraPos(i, 1733.4829,910.3105,-67.0914);
SetPlayerCameraLookAt(i, 1732.1201,956.8251,-67.0607);
GameTextForPlayer(i, "~b~Welcome to the alpha wolf subway!", 5000, 4);
SetTimer("camera",3000,false);
			}
			else if(IsInSubwayTrain[i] == true)
			{
 GameTextForPlayer(i, "~r~The subway is busy please wait", 5000, 4);
			}
the code works ok its just whent the player reaches the point, it works but he also sees the
Код:
 else if(IsInSubwayTrain[i] == true)
			{
 GameTextForPlayer(i, "~r~The subway is busy please wait", 5000, 4);
			}
part

A pic of what happens (the other gametext shows before this one (GameTextForPlayer(i, "~b~Welcome to the alpha wolf subway!", 5000, 4))
Reply
#2

BUMP
Reply
#3

Quote:
Originally Posted by braduz
BUMP
BUMP 2
Reply
#4

Instead of the
pawn Код:
else if(IsInSubwayTrain[i] == true)
Why not just use else and get rid of the if(IsInSubwayTrain[i] == true)
Reply
#5

Quote:
Originally Posted by biltong
Instead of the
pawn Код:
else if(IsInSubwayTrain[i] == true)
Why not just use else and get rid of the if(IsInSubwayTrain[i] == true)
Ok, but i have my doubts i would still suffer this problem
Reply
#6

Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
BUMP
BUMP 2
BUMP 3
Reply
#7

Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
BUMP
BUMP 2
BUMP 3
BUMP 4
Reply
#8

Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
BUMP
BUMP 2
BUMP 3
BUMP 4
BUMP 5
Reply
#9

A timer calls that code?

If it does then it calls it again before the player is set to new pos.
Reply
#10

Quote:
Originally Posted by MadeMan
A timer calls that code?

If it does then it calls it again before the player is set to new pos.
the timer wont loop its false
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)