Error SAMP serious!
#1

PHP код:
public OnVehicleDamageStatusUpdate(vehicleidplayerid)
{
    for (new 
0MAX_PLAYERSi++)
    {
        if (
IsPlayerConnected(i) && IsPlayerInVehicle(ivehicleid))
        {
            if (
CintoPlayerid[i] == 0)
            {
                
VerificarVelocidade(playerid);
            }
            else if (
Capacetes[i] == && IsAMotos(GetPlayerVehicleID(i)))
            {
                
VerificarVelocidade(playerid);
            }
        }
    }
    return 
1;
}
VerificarVelocidade(i)
{
    new 
Floathealth;
    if (
GetPlayerSpeed(itrue) >= 50)
    {
        
GetPlayerHealth(ihealth);
        
SetPlayerHealth(ihealth 7);
    }
    else if (
GetPlayerSpeed(itrue) >= 70)
    {
        
GetPlayerHealth(ihealth);
        
SetPlayerHealth(ihealth 15);
    }
    else if (
GetPlayerSpeed(itrue) >= 110)
    {
        
GetPlayerHealth(ihealth);
        
SetPlayerHealth(ihealth 20);
    }
    else if (
GetPlayerSpeed(itrue) >= 150)
    {
        
GetPlayerHealth(ihealth);
        
SetPlayerHealth(ihealth 30);
    }
    else if (
GetPlayerSpeed(itrue) >= 170)
    {
        
GetPlayerHealth(ihealth);
        
SetPlayerHealth(ihealth 35);
    }
    return 
1;

Hello !! I need urgent help .. you have here is a code in error when a driver takes a impaquito of a vehicle crash, the life decreases, more is only for motorissta, how do I get to mostorista and passenger? please tried to do but it's very complex, samp passing of laws!

@edit

Up!
Reply


Messages In This Thread
Error SAMP serious! - by JoshNudock - 16.06.2015, 16:52
Re: Error SAMP serious! - by Lajko1 - 16.06.2015, 19:49
Re: Error SAMP serious! - by JoshNudock - 16.06.2015, 23:35
Re: Error SAMP serious! - by Sithis - 17.06.2015, 04:53
Re: Error SAMP serious! - by JoshNudock - 17.06.2015, 10:52

Forum Jump:


Users browsing this thread: 2 Guest(s)