C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17549) : error 025: function heading differs from prototype C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17551) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17551) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17553) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17554) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17555) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17556) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17557) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17560) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17563) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17564) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17565) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17568) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17569) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17572) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17573) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17574) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17575) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17576) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17577) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17578) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17579) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17580) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17581) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17582) : error 017: undefined symbol "playerid" C:\Users\Willybum\Desktop\California Roleplay\gamemodes\CARP.pwn(17583) : error 017: undefined symbol "playerid"
public OnPlayerDisconnect(playerid, reason) { if(IsLoaded[playerid]) IsLoaded[playerid] = 0; //Speedos PlayerTextDrawDestroy(playerid,SpeedoText0); PlayerTextDrawDestroy(playerid,SpeedoText1); PlayerTextDrawDestroy(playerid,SpeedoText2); PlayerTextDrawDestroy(playerid,SpeedoText3); PlayerTextDrawDestroy(playerid,SpeedoText4); //Samsung Galaxy PlayerTextDrawDestroy(playerid,CalculatorTD2); //Random News PlayerTextDrawDestroy(playerid, ServerTips); PlayerTextDrawDestroy(playerid, MessagesTD); PlayerTextDrawDestroy(playerid, ServerBanner); //Radar PlayerTextDrawDestroy(playerid,RadarHud); PlayerTextDrawDestroy(playerid,SpeedAndModel); //Baitcar PlayerTextDrawDestroy(playerid, Textdraw0); PlayerTextDrawDestroy(playerid, Textdraw1); PlayerTextDrawDestroy(playerid, Textdraw2); PlayerTextDrawDestroy(playerid, Textdraw3); PlayerTextDrawDestroy(playerid, Textdraw4); PlayerTextDrawDestroy(playerid, Textdraw5); PlayerTextDrawDestroy(playerid, Textdraw6); PlayerTextDrawDestroy(playerid, Textdraw7); PlayerTextDrawDestroy(playerid, Textdraw8); PlayerTextDrawDestroy(playerid, Textdraw9); PlayerTextDrawDestroy(playerid, Textdraw10); PlayerTextDrawDestroy(playerid, Textdraw11); PlayerTextDrawDestroy(playerid, Textdraw12); BaitMonitor[playerid] = 0; Pursuit[playerid] = 0; DestroyDynamic3DTextLabel(PlayerInfo[playerid][aMeID]); PlayerInfo[playerid][aMeStatus] =0; new activewep, activeammo; activewep = GetPVarInt(playerid, "activesling"); activeammo = GetPVarInt(playerid, "activeslingammo");
public OnPlayerDisconnect(playerid, reason) { if(IsLoaded[playerid]) IsLoaded[playerid] = 0; //Speedos PlayerTextDrawDestroy(playerid,SpeedoText0); PlayerTextDrawDestroy(playerid,SpeedoText1); PlayerTextDrawDestroy(playerid,SpeedoText2); PlayerTextDrawDestroy(playerid,SpeedoText3); PlayerTextDrawDestroy(playerid,SpeedoText4); //Samsung Galaxy PlayerTextDrawDestroy(playerid,CalculatorTD2); //Random News PlayerTextDrawDestroy(playerid, ServerTips); PlayerTextDrawDestroy(playerid, MessagesTD); PlayerTextDrawDestroy(playerid, ServerBanner); //Radar PlayerTextDrawDestroy(playerid,RadarHud); PlayerTextDrawDestroy(playerid,SpeedAndModel); //Baitcar PlayerTextDrawDestroy(playerid, Textdraw0); PlayerTextDrawDestroy(playerid, Textdraw1); PlayerTextDrawDestroy(playerid, Textdraw2); PlayerTextDrawDestroy(playerid, Textdraw3); PlayerTextDrawDestroy(playerid, Textdraw4); PlayerTextDrawDestroy(playerid, Textdraw5); PlayerTextDrawDestroy(playerid, Textdraw6); PlayerTextDrawDestroy(playerid, Textdraw7); PlayerTextDrawDestroy(playerid, Textdraw8); PlayerTextDrawDestroy(playerid, Textdraw9); PlayerTextDrawDestroy(playerid, Textdraw10); PlayerTextDrawDestroy(playerid, Textdraw11); PlayerTextDrawDestroy(playerid, Textdraw12); BaitMonitor[playerid] = 0; Pursuit[playerid] = 0; DestroyDynamic3DTextLabel(PlayerInfo[playerid][aMeID]); PlayerInfo[playerid][aMeStatus] =0; new activewep, activeammo; activewep = GetPVarInt(playerid, "activesling"); activeammo = GetPVarInt(playerid, "activeslingammo"); if(activewep > 0) { new szWeapon[16], szMessage[128]; GetWeaponName(activewep, szWeapon, sizeof(szWeapon)); GivePlayerValidWeapon(playerid, activewep, activeammo); format(szMessage, sizeof(szMessage), "You have unslung the %s from your back.", szWeapon); SendClientMessageEx(playerid, COLOR_WHITE, szMessage); format(szMessage, sizeof(szMessage), "* %s unslings a %s from their back.", GetPlayerNameEx(playerid), szWeapon); ProxDetector(30.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); DeletePVar(playerid, "activesling"); } // Vehicle Assignments for(new v=0; v<MAX_DP_CARS; v++) { if(DPCar[v][dpOfficerID] == playerid) { new hours, minutes, seconds, string[128]; new callsign[10]; gettime(hours, minutes, seconds); GetPlayerCallSign(playerid, callsign); new carnum = v; format(string, sizeof(string), "** DISPATCH-0: %s-%d has been un-assigned from car number %d [%d:%d:%d]**", callsign, PlayerInfo[playerid][pBadgeNum], DPCar[carnum][dpCarID], hours, minutes, seconds); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: %s-%d is now 10-7 [%d:%d:%d]**", callsign, PlayerInfo[playerid][pBadgeNum], hours, minutes, seconds); SendDispatchMessage(string); UnAssignDispatchCar(carnum); } } // Unload Placed Stereo if(PlayerInfo[playerid][pHasStereo] == 1) { if(pPortableStereo[playerid][pSPlaced] == 1) { pPortableStereo[playerid][pSPosX] =0; pPortableStereo[playerid][pSPosY] =0; pPortableStereo[playerid][pSPosZ] =0; pPortableStereo[playerid][pSPlaced] =0; DestroyDynamicObject(pPortableStereo[playerid][pSOID]); DestroyDynamic3DTextLabel(pPortableStereo[playerid][pSLID]); } } // Crash Fix - GhoulSlayeR new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(!strcmp(name, "InvalidNick", true)) return 1; if(!strcmp(name, "BannedPlayer", true)) return 1; if(GetPVarInt(playerid, "runningRadar") >= 1) { new vehid = gLastCar[playerid]; if(CheckingSpeed[vehid] > 0) { KillTimer(CheckingSpeed[vehid]); CheckingSpeed[vehid] = 0; } PlayerTextDrawDestroy(playerid, RadarHud); PlayerTextDrawDestroy(playerid, SpeedAndModel); DeletePVar(playerid, "runningRadar"); Radars -= 1; } if(GetPVarInt(playerid, "neon")) { DestroyDynamicObject(GetPVarInt(playerid, "neon")); DestroyDynamicObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "neon0"); DeletePVar(playerid, "neon1"); } if(playerid == MAX_PLAYERS) return 1; PlayersConnected--; if(PlayerInfo[playerid][pWExists] == 1) { WeedLogout(playerid); } if(pTazer[playerid] == 1) GivePlayerValidWeapon(playerid,pTazerReplace[playerid],PlayerInfo[playerid][pGunAmmo][2]); if(GetPVarInt(playerid, "SpeedRadar") == 1) GivePlayerValidWeapon(playerid, GetPVarInt(playerid, "RadarReplacement"), PlayerInfo[playerid][pGunAmmo][9]); if(GetPVarInt(playerid, "MovingStretcher") != -1) { KillTimer(GetPVarInt(playerid, "TickEMSMove")); DeletePVar(GetPVarInt(playerid, "MovingStretcher"), "OnStretcher"); SetPVarInt(playerid, "MovingStretcher", -1); } if(GetPVarInt(playerid, "Hospital") > 0) { PlayerInfo[playerid][pHospital] = 1; } if(GetPVarInt(playerid, "Injured") == 1) { PlayerInfo[playerid][pHospital] = 1; KillEMSQueue(playerid); ResetPlayerWeaponsEx(playerid); } for(new s = 0; s < 12; s++) { if(PlayerInfo[playerid][pAGuns][s] != 0) { RemovePlayerWeapon(playerid, PlayerInfo[playerid][pAGuns][s]); } } if(control[playerid] == 1) { control[playerid] = 0; KillTimer(ControlTimer[playerid]); } if(PlayerInfo[playerid][pLockCar] != INVALID_VEHICLE_ID) { vehicle_unlock_doors(PlayerInfo[playerid][pLockCar]); } if(PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID) { PlayerVehicleInfo[PlayerInfo[playerid][pVehicleKeysFrom]][PlayerInfo[playerid][pVehicleKeys]][pvAllowedPlayerId] = INVALID_PLAYER_ID; } new string[128]; switch (reason) { case 0: { format(string, sizeof(string), "%s has left the server (timeout).", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); if(PlayerCuffed[playerid] != 0) { PlayerInfo[playerid][pJailed] = 4; PlayerInfo[playerid][pJailTime] += 20*60; } if(arr_Wrecking[playerid] != INVALID_VEHICLE_ID) { //UnwreckVehicle(arr_Wrecking[playerid], 1); arr_Wrecking[playerid] = INVALID_VEHICLE_ID; } } case 1: { format(string, sizeof(string), "%s has left the server (leaving).", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); if(PlayerCuffed[playerid] != 0) { PlayerInfo[playerid][pJailed] = 4; PlayerInfo[playerid][pJailTime] += 20*60; } if(arr_Wrecking[playerid] != INVALID_VEHICLE_ID) { //UnwreckVehicle(arr_Wrecking[playerid], 1); arr_Wrecking[playerid] = INVALID_VEHICLE_ID; } } case 2: { format(string, sizeof(string), "%s has left the server (kicked/banned).", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); if(PlayerCuffed[playerid] != 0) { PlayerInfo[playerid][pJailed] = 4; PlayerInfo[playerid][pJailTime] += 20*60; } if(arr_Wrecking[playerid] != INVALID_VEHICLE_ID) { //UnwreckVehicle(arr_Wrecking[playerid], 1); arr_Wrecking[playerid] = INVALID_VEHICLE_ID; } } } if(EventKernel[EventRequest] == playerid) { EventKernel[EventRequest] = 999; ABroadCast( COLOR_YELLOW, "{AA3333}AdmWarning{FFFF00}: The player that was requesting an event has disconnected/crashed.", 4 ); } if(EventKernel[EventCreator] == playerid) { EventKernel[EventCreator] = 999; ABroadCast( COLOR_YELLOW, "{AA3333}AdmWarning{FFFF00}: The player that was creating an event has disconnected/crashed.", 4 ); } if(EventKernel[EventStaff][0] == playerid) { EventKernel[EventStaff][0] = 999; } else if(EventKernel[EventStaff][1] == playerid) { EventKernel[EventStaff][1] = 999; } else if(EventKernel[EventStaff][2] == playerid) { EventKernel[EventStaff][2] = 999; } else if(EventKernel[EventStaff][3] == playerid) { EventKernel[EventStaff][3] = 999; } else if(EventKernel[EventStaff][4] == playerid) { EventKernel[EventStaff][4] = 999; } if(GetPVarInt(playerid, "IsInArena") >= 0) { LeavePaintballArena(playerid, GetPVarInt(playerid, "IsInArena")); PlayerInfo[playerid][pInt] = GetPVarInt(playerid, "pbOldInt"); PlayerInfo[playerid][pVW] = GetPVarInt(playerid, "pbOldVW"); PlayerInfo[playerid][pPos_x] = GetPVarFloat(playerid, "pbOldX"); PlayerInfo[playerid][pPos_y] = GetPVarFloat(playerid, "pbOldY"); PlayerInfo[playerid][pPos_z] = GetPVarFloat(playerid, "pbOldZ"); PlayerInfo[playerid][pHealth] = GetPVarFloat(playerid, "pbOldHealth"); PlayerInfo[playerid][pArmor] = GetPVarFloat(playerid, "pbOldArmor"); SetPlayerHealth(playerid,GetPVarFloat(playerid, "pbOldHealth")); SetPlayerArmour(playerid,GetPVarFloat(playerid, "pbOldArmor")); } else if(GetPVarInt(playerid, "EventToken") == 0) { new Float: x, Float: y, Float: z; PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid); PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid); PlayerInfo[playerid][pChar] = PlayerInfo[playerid][pModel]; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]); PlayerInfo[playerid][pPos_x] = x; PlayerInfo[playerid][pPos_y] = y; PlayerInfo[playerid][pPos_z] = z; } else if(GetPVarInt(playerid, "EventToken") == 1) { PlayerInfo[playerid][pInt] = EventLastInt[playerid]; PlayerInfo[playerid][pVW] = EventLastVW[playerid]; PlayerInfo[playerid][pChar] = PlayerInfo[playerid][pModel]; PlayerInfo[playerid][pPos_r] = EventFloats[playerid][0]; PlayerInfo[playerid][pPos_x] = EventFloats[playerid][1]; PlayerInfo[playerid][pPos_y] = EventFloats[playerid][2]; PlayerInfo[playerid][pPos_z] = EventFloats[playerid][3]; } if(WatchingTV[playerid] == 1) { PlayerInfo[playerid][pInt] = BroadcastLastInt[playerid]; PlayerInfo[playerid][pVW] = BroadcastLastVW[playerid]; PlayerInfo[playerid][pPos_r] = BroadcastFloats[playerid][0]; PlayerInfo[playerid][pPos_x] = BroadcastFloats[playerid][1]; PlayerInfo[playerid][pPos_y] = BroadcastFloats[playerid][2]; PlayerInfo[playerid][pPos_z] = BroadcastFloats[playerid][3]; WatchingTV[playerid] = 0; viewers--; UpdateSANewsBroadcast(); } if(Spectate[playerid] < 553) { PlayerInfo[playerid][pInt] = GetPVarInt(playerid, "SpecInt"); PlayerInfo[playerid][pVW] = GetPVarInt(playerid, "SpecVW"); PlayerInfo[playerid][pChar] = PlayerInfo[playerid][pModel]; PlayerInfo[playerid][pPos_x] = GetPVarFloat(playerid, "SpecPosX"); PlayerInfo[playerid][pPos_y] = GetPVarFloat(playerid, "SpecPosY"); PlayerInfo[playerid][pPos_z] = GetPVarFloat(playerid, "SpecPosZ"); GettingSpectated[Spectate[playerid]] = 999; Spectate[playerid] = 999; } if(gBike[playerid] >= 0 && gBikeRenting[playerid] == 1) { gBike[playerid] = 0; gBikeRenting[playerid] = 0; KillTimer(GetPVarInt(playerid, "RentTime")); } if(GetPVarInt(playerid, "gpsonoff") == 1) TextDrawDestroy(GPS[playerid]); if(InsideShamal[playerid] != INVALID_VEHICLE_ID) { if(InsideShamal[playerid] == INVALID_VEHICLE_ID || GetVehicleModel(InsideShamal[playerid]) != 519) { GivePlayerValidWeapon(playerid, 46, 1); PlayerInfo[playerid][pPos_x] = 0.000000; PlayerInfo[playerid][pPos_y] = 0.000000; PlayerInfo[playerid][pPos_z] = 420.000000; } else { new Float:X, Float:Y, Float:Z; GetVehiclePos(InsideShamal[playerid], X, Y, Z); PlayerInfo[playerid][pPos_x] = X; PlayerInfo[playerid][pPos_y] = Y; PlayerInfo[playerid][pPos_z] = Z; new Float:XB, Float:YB, Float:ZB; GetVehiclePos(InsideShamal[playerid], XB, YB, ZB); if(ZB > 50.0) { GivePlayerValidWeapon(playerid, 46, 1); } } PlayerInfo[playerid][pVW] = 0; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pInt] = 0; SetPlayerInterior(playerid, 0); InsideShamal[playerid] = INVALID_VEHICLE_ID; } InsideShamal[playerid] = INVALID_VEHICLE_ID; DestroyDynamicObject(GetPVarInt(playerid, "neon")); DestroyDynamicObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "neon0"); DeletePVar(playerid, "neon1"); gActivePlayers[playerid]--; numplayers--; PlayerInfo[playerid][pAdjustable] = 1; OnPlayerStatsUpdate(playerid); UnloadPlayerVehicles(playerid); ResetPlayerWeapons(playerid); ToBeKicked[playerid] = 0; ClearReport(GetPlayerActiveReport(playerid)); foreach(new i : Player) { if(TaxiAccepted[i] == playerid) { TaxiAccepted[i] = 999; GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Left the game", 5000, 1); TaxiCallTime[i] = 0; DisablePlayerCheckpoint(i); } if(EMSAccepted[i] == playerid) { EMSAccepted[i] = 999; GameTextForPlayer(i, "~w~EMS Caller~n~~r~Left the game", 5000, 1); EMSCallTime[i] = 0; DisablePlayerCheckpoint(i); } if(BusAccepted[i] == playerid) { BusAccepted[i] = 999; GameTextForPlayer(i, "~w~Bus Caller~n~~r~Left the game", 5000, 1); BusCallTime[i] = 0; DisablePlayerCheckpoint(i); } if(MedicAccepted[i] == playerid) { TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; MedicAccepted[playerid] = 999; GameTextForPlayer(i, "~w~Medic Caller~n~~r~Left the game", 5000, 1); MedicCallTime[i] = 0; DisablePlayerCheckpoint(i); } if(RRAccepted[i] == playerid) { RRAccepted[playerid] = 999; GameTextForPlayer(i, "~w~RR Caller~n~~r~Left the game", 5000, 1); RRCallTime[i] = 0; DisablePlayerCheckpoint(i); } if(OrderAssignedTo[i] == playerid) { OrderAssignedTo[i] = INVALID_PLAYER_ID; } } if(HaveGPS[playerid]) { KillTimer(GPSTimer[playerid]); HaveGPS[playerid] = false; GPSTimer[playerid] = 0; } if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999) { if(IsPlayerConnected(TransportDriver[playerid])) { TransportMoney[TransportDriver[playerid]] += TransportCost[playerid]; TransportTime[TransportDriver[playerid]] = 0; TransportCost[TransportDriver[playerid]] = 0; format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]); GameTextForPlayer(TransportDriver[playerid], string, 5000, 1); TransportDriver[playerid] = 999; } } if(GotHit[playerid] > 0) { if(GetChased[playerid] < 999) { if(IsPlayerConnected(GetChased[playerid])) { SendClientMessageEx(GetChased[playerid], COLOR_YELLOW, "Your hit has left the server."); GoChase[GetChased[playerid]] = 999; } } } if(GoChase[playerid] < 999) { GetChased[GoChase[playerid]] = 999; GotHit[GoChase[playerid]] = 999; } if(HireCar[playerid] != 299) { gLastDriver[HireCar[playerid]] = 300; vehicle_unlock_doors(HireCar[playerid]); } if (gLastCar[playerid] > 0) { gLastDriver[gLastCar[playerid]] = 300; if(PlayerInfo[playerid][pPhousekey] != gLastCar[playerid]-1) { vehicle_unlock_doors(gLastCar[playerid]); } } if(PlayerBoxing[playerid] > 0) { if(Boxer1 == playerid) { if(IsPlayerConnected(Boxer2)) { if(IsPlayerInRangeOfPoint(PlayerBoxing[Boxer2], 20.0, 768.94, -70.87, 1001.56)) { PlayerBoxing[Boxer2] = 0; SetPlayerPos(Boxer2, 768.48, -73.66, 1000.57); SetPlayerInterior(Boxer2, 7); GameTextForPlayer(Boxer2, "~r~Match interupted", 5000, 1); return 1; } PlayerBoxing[Boxer2] = 0; SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186); SetPlayerInterior(Boxer2, 5); GameTextForPlayer(Boxer2, "~r~Match interupted", 5000, 1); } } else if(Boxer2 == playerid) { if(IsPlayerConnected(Boxer1)) { if(IsPlayerInRangeOfPoint(PlayerBoxing[Boxer1],20.0,764.35, -66.48, 1001.56)) { PlayerBoxing[Boxer1] = 0; SetPlayerPos(Boxer1, 768.48, -73.66, 1000.57); SetPlayerInterior(Boxer1, 7); GameTextForPlayer(Boxer1, "~r~Match interupted", 5000, 1); return 1; } PlayerBoxing[Boxer1] = 0; SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerInterior(Boxer1, 5); GameTextForPlayer(Boxer1, "~r~Match interupted", 5000, 1); } } InRing = 0; RoundStarted = 0; Boxer1 = INVALID_PLAYER_ID; Boxer2 = INVALID_PLAYER_ID; TBoxer = INVALID_PLAYER_ID; } if(GetPVarInt(playerid, "AdvisorDuty") == 1) { Advisors--; } if(TransportDuty[playerid] == 1) { TaxiDrivers -= 1; } else if(TransportDuty[playerid] == 2) { BusDrivers -= 1; } if(PlayerInfo[playerid][pJob] == 11 || PlayerInfo[playerid][pJob2] == 11) { if(JobDuty[playerid] == 1) { Medics -= 1; } } if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7) { if(JobDuty[playerid] == 1) { Mechanics -= 1; } } if(PlayerInfo[playerid][pJob] == 11 || PlayerInfo[playerid][pJob2] == 11) { if(JobDuty[playerid] == 1) { Coastguard -= 1; } } if(RoadblockActive[playerid] == 1) { DestroyObject(ROADBLOCK[playerid]); RoadblockActive[playerid]=0; } return 1; }
error 017: undefined symbol "playerid"
error 025: function heading differs from prototype
?
Code:
error 017: undefined symbol "playerid" @tonto125 Code:
error 025: function heading differs from prototype |