stock problem .
#1

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 ?
Reply
#2

SetTimerEx ( "SetPlayerPosExTimer", 20*1000, false, "dfff", playerid, x, y, z );
Reply
#3

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
Reply
#4

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)