Timers Help
#1

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

and so [PAWN*] [/PAWN*] without the *
Reply
#3

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)