SA-MP Forums Archive
Timers Help - 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)
+--- Thread: Timers Help (/showthread.php?tid=361603)



Timers Help - WinterAce - 21.07.2012

pawn Код:
public shamalsTimer() {
    ShamalTick--;
    foreach(Player, i) {
        switch(ShamalTick) {
            case 1:{

                mysql_close();
                KillTimer(ShamalTimer);
                playerVariables[i][pInterior] = 0;
                playerVariables[i][pVirtualWorld] = 0;
                SetSpawnInfo(i, 0, playerVariables[i][pSkin], 1447.5026, -2286.8369, 13.5469, 87.1157, 0, 0, 0, 0, 0, 0);
                SetPlayerPos(i, 1447.5026, -2286.8369, 13.5469);
                SetPlayerFacingAngle(i, 87.1157);
            }
            case 3: SendClientMessage(i, COLOR_WHITE, "{FFFFFF}Flight Attendant: We are about to arrive in Los Santos, welcome.");
            case 5: GameTextForAll("~w~You will land in ~r~Los Santos ~w~in 9 seconds.", 1110, 5);
        }
    }
    return 1;
}
What's wrong with this? It shows the flight attendant message but it doesn't teleport the player.


Re: Timers Help - Don_Speed - 21.07.2012

and so [PAWN*] [/PAWN*] without the *


Re: Timers Help - WinterAce - 21.07.2012

Sorry, forgot the /. I can't see anything wrong with the code though, the flight attendant bit works fine but it doesn't teleport the player..