[Ajuda] Code com um warning satanico
#1

Ajude-me

Код:
//==============================================================================

public OnPlayerUpdate(playerid)
{
    new string[32];
    if(!IsPlayerConnected(playerid)) return 1;
    if(Vel[playerid] == true)
    {
        GetVehicleHealth(GetPlayerVehicleID(playerid),Vhealth);
        format(string, sizeof(string), "~r~~h~%d ~w~KM/H",GetVehicleSpeed(playerid),floatround(Vhealth));
        TextDrawSetString(Velocimetro,string);
        if(IsPlayerInAnyVehicle(playerid))
        {
            TextDrawShowForPlayer(playerid,Velocimetro);
        }
        else
        {
            TextDrawHideForPlayer(playerid,Velocimetro);
        }
    }
	if(GetPlayerVirtualWorld(playerid) == 0){
	SetPlayerHealth(playerid,99999);
	SetPlayerArmour(playerid,99999);
	}
}
//==============================================================================
Код:
warning 209: function "OnPlayerUpdate" should return a value
Reply


Messages In This Thread
Code com um warning satanico - by VinnyScript - 30.03.2015, 02:25
Re: Code com um warning satanico - by Whoo - 30.03.2015, 02:32
Re: Code com um warning satanico - by ipsLuan - 30.03.2015, 02:33
Re: Code com um warning satanico - by VinnyScript - 30.03.2015, 02:35
Re: Code com um warning satanico - by ipsLuan - 30.03.2015, 02:57
Re: Code com um warning satanico - by VinnyScript - 30.03.2015, 03:08

Forum Jump:


Users browsing this thread: 1 Guest(s)