24.02.2010, 19:07
I got this:
Also without strlen i get the same error
and the timer is set like this
Global:
OnPlayerEnterVehicle:
OnPlayerExitVehicle:
and these are my errors:
whats wrong?
i dont get it?
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;
}
and the timer is set like this
Global:
pawn Код:
new dmvPlayerDamageTimer;
pawn Код:
dmvPlayerDamageTimer = SetTimerEx("DmvCarDamage", 5000, true, "i", playerid);
pawn Код:
KillTimer(dmvPlayerDamageTimer);
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"
i dont get it?