Hallo Community,
Ich habe ein problem mit dem Feuerwhersystem von dem Bayside Script
Ich habe es fast genau so gemacht aber bekomme erros bei playerid
Hier der code
public SetPlayerBurn(playerid)
{
SetPlayerAttachedObject(playerid, FIRE_OBJECT_SLOT, 18690, 2, -1, 0, -1.9, 0, 0);
PlayerOnFire[playerid] = 1;
GetPlayerHealth(playerid, PlayerOnFireHP[playerid]);
KillTimer(PlayerOnFireTimer[playerid]); KillTimer(PlayerOnFireTimer2[playerid]);
PlayerOnFireTimer[playerid] = SetTimerEx("BurningTimer", 101, 1, "d", playerid);
PlayerOnFireTimer2[playerid] = SetTimerEx("StopPlayerBurning", 7177, 0, "d", playerid);
return 1;
}
public BurningTimer(playerid)
{
if(PlayerOnFire[playerid])
{
new Float:hp;
GetPlayerHealth(playerid, hp);
if(hp < PlayerOnFireHP[playerid])
{
PlayerOnFireHP[playerid] = hp;
}
SetPlayerHealth(playerid, PlayerOnFireHP[playerid]-1.0);
PlayerOnFireHP[playerid] -= 1.0;
}
else
{
KillTimer(PlayerOnFireTimer[playerid]); KillTimer(PlayerOnFireTimer2[playerid]);
}
}
unreachable code
invalid expression, assumed zero
function "SetPlayerBurn" is not implemented
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
unreachable code
invalid expression, assumed zero
function "BurningTimer" is not implemented
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
undefined symbol "playerid"
Alles anzeigen
Hoffe mir kann einer helfen