[Help] SetTimerEx
#5

I got this:

pawn Код:
public dmvPlayerDamageTimer()
{
    new Float:vhp;
    GetVehicleHealth(GetPlayerVehicleID(playerid), vhp);
    if(strlen(vhp) <= 700)
    {
        SENDMSG(playerid, 0xFFFFFF, "Your car health is now around 700");
    }

    if(strlen(vhp) <= 540)
    {
      SENDMSG(playerid, 0xFFFFFF, "Your car health is now under 540 . you will be charged for the repairings.");
        GivePlayerMoney(playerid, -1000);
        KillTimer(dmvPlayerDamageTimer[playerid]);
    }
    return 1;
}
Also without strlen i get the same error

and the timer is set like this

Global:
pawn Код:
new dmvPlayerDamageTimer;
OnPlayerEnterVehicle:
pawn Код:
dmvPlayerDamageTimer = SetTimerEx("DmvCarDamage", 5000, true, "i", playerid);
OnPlayerExitVehicle:
pawn Код:
KillTimer(dmvPlayerDamageTimer);
and these are my errors:
pawn Код:
(2647) : error 021: symbol already defined: "dmvPlayerDamageTimer"
(2650) : error 021: symbol already defined: "GetVehicleHealth"
(2651) : error 010: invalid function or declaration
(2653) : error 021: symbol already defined: "SENDMSG"
(2656) : error 010: invalid function or declaration
(2658) : error 021: symbol already defined: "SENDMSG"
(2662) : error 010: invalid function or declaration
(2726) : warning 203: symbol is never used: "vhp"
whats wrong?
i dont get it?
Reply


Messages In This Thread
[Help] SetTimerEx - by Niixie - 24.02.2010, 17:30
Re: [Help] SetTimerEx - by BlackFoX - 24.02.2010, 17:33
Re: [Help] SetTimerEx - by Niixie - 24.02.2010, 18:22
Re: [Help] SetTimerEx - by BlackFoX - 24.02.2010, 18:32
Re: [Help] SetTimerEx - by Niixie - 24.02.2010, 19:07
Re: [Help] SetTimerEx - by Miguel - 25.02.2010, 03:13
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 12:12
Re: [Help] SetTimerEx - by BlackFoX - 25.02.2010, 12:50
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 13:15
Re: [Help] SetTimerEx - by smeti - 25.02.2010, 13:21
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 13:51
Re: [Help] SetTimerEx - by BlackFoX - 25.02.2010, 14:00
Re: [Help] SetTimerEx - by Niixie - 25.02.2010, 14:10
Re: [Help] SetTimerEx - by smeti - 25.02.2010, 16:53
Re: [Help] SetTimerEx - by Niixie - 26.02.2010, 14:51
Re: [Help] SetTimerEx - by smeti - 26.02.2010, 16:04
Re: [Help] SetTimerEx - by Niixie - 26.02.2010, 16:05

Forum Jump:


Users browsing this thread: 2 Guest(s)