stock problem . - 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: stock problem . (
/showthread.php?tid=204269)
stock problem . -
Mean - 29.12.2010
so ...
pawn Код:
public SetPlayerPosExTimer(playerid, Float:x, Float:y, Float:z)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, x, y, z);
GameTextForPlayer(playerid, "Traveling over", 3000, 3);
return 1;
}
stock SetPlayerPosEx(playerid, Float:x, Float:y, Float:z)
{
SetPlayerPos(playerid, x, y, z);
GetPlayerPos(playerid, x, y, z);
GameTextForPlayer(playerid, "Traveling", 3000, 3);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 1.7313,27.1232,1199.5938);
SetTimerEx("SetPlayerPosExTimer", 20*1000, 0, "i", playerid);
return 1;
}
And, when I so for example, SetPlayerPosEx(playerid,-1586.1814,-2742.9502,48.5391); this is happening
It teleports me to plane (Normal)
It waits 20 seconds (Normal)
After 20 seconds it teleports me to 0.0, 0.0, 0.0 (The problem)
IT should teleport to given X, Y, and Z in SetPlayerPosEx(playerid,-1586.1814,-2742.9502,48.5391);
Any help ?
Re: stock problem . -
Retardedwolf - 29.12.2010
SetTimerEx ( "SetPlayerPosExTimer", 20*1000, false, "dfff", playerid, x, y, z );
Re: stock problem . - [03]Garsino - 29.12.2010
Change
pawn Код:
SetTimerEx("SetPlayerPosExTimer", 20*1000, 0, "i", playerid);
to
pawn Код:
SetTimerEx("SetPlayerPosExTimer", (20*1000), 0, "ifff", playerid, x, y, z);
You forgot to add the x, y, z values in the timer part
Re: stock problem . -
Mean - 29.12.2010
Thanks!