[Ajuda] Erro com SetTimer
#1

Nгo estou a perceber este erro:

PHP код:
error 076syntax error in the expression, or invalid function call 
Eu criei um timer que actualiza de segundo a segundo, mas quando quero colocar a funзгo para acabar com o timer (KillTimer), dб esse erro.

Como comeзo o timer:

pawn Код:
SetTimer("RespawnCarros", 1000, true);
Onde estб o KillTimer:

pawn Код:
public RespawnCarros()
{
    new string[3];
   
    if(CounterCountdown != 0)
    {
        CounterCountdown--;

        format(string, sizeof(string), "%i", CounterCountdown);
        GameTextForAll(string, 999, 4);
       
        printf("1");
    }
    else if(CounterCountdown == 0)
    {
        KillTimer(RespawnCarros); // AQUI!!!!!!!!!!!!!!!!!!
        printf("2");
        new bool:vehicle[MAX_VEHICLES];
        for(new j = 1; GetVehicleModel(j); ++j)
        {
            printf("3");
            vehicle[j] = false;
            for(new i, p = GetMaxPlayers(); i < p; ++i)
            {
                printf("4");
                if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i)) continue;
                if(IsPlayerInVehicle(i, j))
                {
                    printf("5");
                    vehicle[j] = true;
                    break;
                }
            }
            if(!vehicle[j]) SetVehicleToRespawn(j);
            printf("6");
        }
        GameTextForAll("~g~RESPAWN!!!", 5000, 0);
        printf("7");
    }
    return 1;
}
Alguйm sabe como fixar?
Reply


Messages In This Thread
Erro com SetTimer - by bruxo00 - 11.10.2013, 16:01
Re: Erro com SetTimer - by Schocc - 11.10.2013, 16:03
Re: Erro com SetTimer - by PT - 11.10.2013, 16:04
Re: Erro com SetTimer - by iDreak - 11.10.2013, 16:12
Re: Erro com SetTimer - by bruxo00 - 11.10.2013, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)