Code help, maybe lagg? - 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: Code help, maybe lagg? (
/showthread.php?tid=132365)
Code help, maybe lagg? -
braduz - 07.03.2010
Код:
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)
![Wink](images/smilies/wink.png)
)
Re: Code help, maybe lagg? -
braduz - 08.03.2010
BUMP
Re: Code help, maybe lagg? -
braduz - 09.03.2010
Quote:
Originally Posted by braduz
BUMP ![](http://www.poormojo.org/pmjadaily/archives/Blank-Facepalm.gif)
|
BUMP 2
Re: Code help, maybe lagg? -
biltong - 09.03.2010
Instead of the
pawn Код:
else if(IsInSubwayTrain[i] == true)
Why not just use else and get rid of the if(IsInSubwayTrain[i] == true)
Re: Code help, maybe lagg? -
braduz - 09.03.2010
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
Re: Code help, maybe lagg? -
braduz - 14.03.2010
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
BUMP ![](http://www.poormojo.org/pmjadaily/archives/Blank-Facepalm.gif)
|
BUMP 2
|
BUMP 3
Re: Code help, maybe lagg? -
braduz - 15.03.2010
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
BUMP ![](http://www.poormojo.org/pmjadaily/archives/Blank-Facepalm.gif)
|
BUMP 2
|
BUMP 3
|
BUMP 4
Re: Code help, maybe lagg? -
braduz - 20.03.2010
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
Quote:
Originally Posted by braduz
BUMP ![](http://www.poormojo.org/pmjadaily/archives/Blank-Facepalm.gif)
|
BUMP 2
|
BUMP 3
|
BUMP 4
|
BUMP 5
Re: Code help, maybe lagg? -
MadeMan - 20.03.2010
A timer calls that code?
If it does then it calls it again before the player is set to new pos.
Re: Code help, maybe lagg? -
braduz - 20.03.2010
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