Crazy Timer bug
#1

Heey guys,

I want to make a renting system in my GM.

Now I have a timer and when it ends I have this:

pawn Код:
public Rentbike(playerid)
{
    new vid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_RED, "Your time is up, the bike will be picked up");
    return 1;
}
Now I want to kill the timer and I made this:

pawn Код:
public Rentbike(playerid)
{
    new vid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_RED, "Your time is up, the bike will be picked up");
    KillTimer(Rentbike(playerid));
    return 1;
}
When I do this there is comming many thimes the sendclientmessage, what do I do wrong?

Greetings
Reply


Messages In This Thread
Crazy Timer bug - by jorambo - 25.02.2011, 21:00
Re: Crazy Timer bug - by Think - 25.02.2011, 21:01
Re: Crazy Timer bug - by BlackWolf120 - 25.02.2011, 21:11
Re: Crazy Timer bug - by jorambo - 25.02.2011, 21:56

Forum Jump:


Users browsing this thread: 1 Guest(s)