Timer Help
#1

In my server, I've got this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, -2829.4509,2601.7959,160.1133);
    TogglePlayerControllable(playerid, 0);
    SetPlayerCameraLookAt(playerid,-2482.0869,2384.7859,13.3606);
    SetPlayerCameraPos(playerid,-2287.3457,2080.9849,10.2316);
    SetTimerEx("BaysideCameras", 1500, 0, "i", playerid);
    return 1;
}
And here's my BaysideCameras method:
pawn Код:
public BaySideCameras(playerid)
{
    new camera;
    switch(camera) {
        case 0: SetPlayerCameraPos(playerid,-2287.3457,2080.9849,10.2316);
        case 1: SetPlayerCameraPos(playerid,-2222.0532,2169.4048,58.7913);
        case 2: SetPlayerCameraPos(playerid,-2186.5342,2428.9966,58.7913);
        case 3: SetPlayerCameraPos(playerid,-2350.1245,2559.9856,58.7913);
        case 4: SetPlayerCameraPos(playerid,-2604.7361,2597.5889,91.1503);
        case 5: SetPlayerCameraPos(playerid,-2741.2986,2435.5330,91.4912);
        case 6: SetPlayerCameraPos(playerid,-2663.8237,2143.5085,72.0710);
    }
    if(camera < 6) {
        camera++;
    } else if(camera == 6) {
        camera = 0;
    }
}
So I log on and wait at the class selection, and nothing happens. What's wrong?
Reply


Messages In This Thread
Timer Help - by jameskmonger - 19.12.2010, 10:56
Re: Timer Help - by Norck - 19.12.2010, 11:42
Re: Timer Help - by jameskmonger - 19.12.2010, 12:53
Re: Timer Help - by Norck - 19.12.2010, 16:06
Re: Timer Help - by jameskmonger - 19.12.2010, 17:02
Re: Timer Help - by Norck - 19.12.2010, 17:26
Re: Timer Help - by MadeMan - 19.12.2010, 17:30
Re: Timer Help - by jameskmonger - 19.12.2010, 21:24

Forum Jump:


Users browsing this thread: 2 Guest(s)