What's wrong
#1

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    if(GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 425
    {
    new Float:health;
    new car;
    car = GetPlayerVehicleID(playerid);
    GetVehicleHealth(car, health)
    if{health < 250) return SendClientMessageToAll(COLOR_YELLOW, "Watch out! A AIR-WAR vehicle is coming down from the sky! Watch your head!");
    }
    return 1;
}
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
error 008: must be a constant expression; assumed zero

Thanks.
Reply
#2

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    if(GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 425)
    {
        new Float:health;
        new car;
        car = GetPlayerVehicleID(playerid);
        GetVehicleHealth(car, health);
        if{health < 250) return SendClientMessageToAll(COLOR_YELLOW, "Watch out! A AIR-WAR vehicle is coming down from the sky! Watch your head!");
    }
    return 1;
}
?
You forgot a closing bracket at "...GetVehicleModel(vehicleid) == 425...".
Reply
#3

expected token: "*then", but found "return"
must be a constant expression; assumed zero

Error line:

pawn Код:
if{health < 250) return SendClientMessageToAll(COLOR_YELLOW, "Watch out! An AIR-WAR vehicle is coming down from the sky! Watch your head!");
Thanks. ^^
Reply
#4

Here:
pawn Код:
if(GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 425)
    {
        new Float:health;
        new car;
        car = GetPlayerVehicleID(playerid);
        GetVehicleHealth(car, health);
        if(health < 250) return SendClientMessageToAll(COLOR_YELLOW, "Watch out! A AIR-WAR vehicle is coming down from the sky! Watch your head!");
    }
You putted the "{" where it should go "(".

Quote:
Originally Posted by Logitech90
if{health < 250)
Reply
#5

Right,thanks ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)