Does this need a return?
#3

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
            }
        }
    }
    return 1;//You dont need it but you can use it
}
You forgot one } and you dont need return but you can use it
[EDIT]I late
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)