18.03.2012, 21:42
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?
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); }