Does this need a return?
#2

Not unless you return it in another function.

The reason for the error is that you are missing a bracket at the end of the function:
pawn Код:
public FixAllCar()
{
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
        if(IsPlayerVipType(playerid,3))
        {
            if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);// gettin the vehicle id
            SetVehicleHealth(vehicleid,1000.0);// set the vehicle healt
                          }
                    }
    }
}
Reply


Messages In This Thread
Does this need a return? - by Shockey HD - 20.07.2011, 18:42
Re: Does this need a return? - by Grim_ - 20.07.2011, 19:04
Re: Does this need a return? - by DRIFT_HUNTER - 20.07.2011, 19:04
Re: Does this need a return? - by Shockey HD - 20.07.2011, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)