Need Help!! [ASAP]
#1

Hello,
I was trying to combine the /lock sys and autoflip script together.
When i do i get this error i cant seem to fix. Sorry im noob im trying to learn
Mind if you help?
Code:
public AutoRepair()
{
	for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
	{
	    if (AutoRepairTrigger[playerid] == 1) return 1;
	    if (IsPlayerInAnyVehicle(playerid))
	    {
			if (AutoRepairUsed[playerid] == 3)
			{
				SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
				AutoRepairUsed[playerid] = 0;
			}
			new Float:CarHP;
			GetVehicleHealth(GetPlayerVehicleID(playerid), CarHP);
            if (CarHP < 350)
            {
                new Float:X, Float:Y, Float:Z;
				RepairVehicle(GetPlayerVehicleID(playerid));
                GameTextForPlayer(playerid, "~y~Vehicle ~r~Auto ~y~Repaired!",2000,5);
                PlayerPlaySound(playerid, 1133, X, Y, Z);
                AutoRepairUsed[playerid] = AutoRepairUsed[playerid] +1;
			}
		}
	}
	return 1;
}

public AutoFlipReset()
{
	for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
	{
	    AutoRepairUsed[playerid] = 0;
	}
	return 1;
}

dcmd_ar(playerid, params[])
{
	#pragma unused params
	if (AutoRepairTrigger[playerid] == 0)
	{
	    AutoRepairTrigger[playerid] = 1;
	    SendClientMessage(playerid, 0x99FFFFAA, "[AutoRepair/Flip] Disabled, Use ''/ar'', or ''/autorepair'' To Enable It Again!");
	    return 1;
	}
	else if (AutoRepairTrigger[playerid] == 1)
	{
	    AutoRepairTrigger[playerid] = 0;
	    SendClientMessage(playerid, 0x99FFFFAA, "[AutoRepair/Flip] Enabled");
	    return 1;
	}
	return 1;
}

dcmd_autorepair(playerid, params[])
{
	return dcmd_ar(playerid, params);
}
Reply


Messages In This Thread
Need Help!! [ASAP] - by [PDS]DarioKeic - 18.03.2012, 21:42
Re: Need Help!! [ASAP] - by Jonny5 - 18.03.2012, 21:52
Re: Need Help!! [ASAP] - by [PDS]DarioKeic - 18.03.2012, 21:56
Re: Need Help!! [ASAP] - by Jonny5 - 18.03.2012, 22:02
Re: Need Help!! [ASAP] - by [PDS]DarioKeic - 18.03.2012, 22:07
Re: Need Help!! [ASAP] - by Georgi166 - 18.03.2012, 22:14
Re: Need Help!! [ASAP] - by [PDS]DarioKeic - 18.03.2012, 22:15
Re: Need Help!! [ASAP] - by Jonny5 - 18.03.2012, 22:17
Re: Need Help!! [ASAP] - by Kudoz - 18.03.2012, 22:20

Forum Jump:


Users browsing this thread: 6 Guest(s)