07.11.2013, 12:25
I have this code
And i got those errors
My enum pinfo
And I dont know why er is MaX_Player+1. if i delete it i got this
Specific lines?
11456
Hole code
3737
3790
3822
3852
Код:
stock GiveDodWeapon(playerid, weaponid, ammo) { GunsBeingRemoved[playerid] = 1; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); if(weaponid == 0 || weaponid == 1) { // Slot 0 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][0] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 2 || weaponid == 3 || weaponid == 4 || weaponid == 5 || weaponid == 6 || weaponid == 7 || weaponid == 8 || weaponid == 9) { // Slot 1 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][1] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 22 || weaponid == 23 || weaponid == 24) { // Slot 2 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][2] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 25 || weaponid == 26 || weaponid == 27) { // Slot 3 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][3] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 28 || weaponid == 29 || weaponid == 32) { // Slot 4 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][4] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 30 || weaponid == 31) { // Slot 5 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][5] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 33 || weaponid == 34) { // Slot 6 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][6] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 35 || weaponid == 36 || weaponid == 37 || weaponid == 38) { // Slot 7 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][7] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 16 || weaponid == 17 || weaponid == 18 || weaponid == 39) { // Slot 8 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][8] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 41 || weaponid == 42 || weaponid == 43) { // Slot 9 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][9] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 10 || weaponid == 11 || weaponid == 12 || weaponid == 13 || weaponid == 14 || weaponid == 15) { // Slot 10 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][10] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 44 || weaponid == 45 || weaponid == 46) { // Slot 11 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][11] = weaponid; GunsBeingRemoved[playerid] = 1; } else if(weaponid == 40) { // Slot 12 GunsBeingRemoved[playerid] = 1; PlayerInfo[playerid][pWeapon][12] = weaponid; GunsBeingRemoved[playerid] = 1; } GivePlayerWeapon(playerid, weaponid, ammo); return 1; }
Код:
C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1383) : error 017: undefined symbol "PlayerInfo" C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1383) : error 029: invalid expression, assumed zero C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1383) : warning 215: expression has no effect C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1383) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(1383) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
enum pInfo { pKey[129], pTikis, pMask, pBoombox, pAlreadyBoombox, pbuyBoombox, pLevel, pAdminTime, pAdmin, pAdminDuty, pDonateRank, gPupgrade, pConnectTime, pReg, pSex, pAge, pOrigin, pCK, pCash, pHospital, pMuted, pPrisonReason[128], pPrisonedBy[MAX_PLAYER_NAME], pFlag[128], pRMuted, pRMutedTotal, pRMutedTime, pVMuted, pVMutedTime, pFactionModerator, pGangModerator, pExp, pAccount, pCrimes, pPaintTeam, pKills, pDeaths, pArrested, pWantedDeaths, pPhoneBook, pLottoNr, pFishes, pToggedVIPChat, pBiggestFish, pJob, pAutoTextReply[64], pPhonePrivacy, pJob2, pNMute, pNMuteTotal, pADMute, pADMuteTotal, pHelpMute, pPayCheck, pHeadValue, pJailed, pJailTime, pWRestricted, pMats, pPackages, pGM, pLeader, pMember, pDivision, pFMember, pSpeakerPhone, pRank, pChar, pStreetRep, pRepHandOut, pDetSkill, pSexSkill, pBoxSkill, pLawSkill, pMechSkill, pJackSkill, pCarSkill, pTruckSkill, pWantedLevel, pGunSkill, pGoods, pSMats, pPot, pCrack, pMeth, pSDrugs, pMInsure, pPcarkey, pPcarkey2, pPcarkey3, pBadgeNumber, pRoadblock, pHelper, pNewsSkill, pDrugsSkill, pArmsSkill, pSmugSkill, pCookSkill, pFishSkill, Float:pHealth, Float:pArmor, Float:pSArmor, Float:pSHealth, pInt, pLocal, pTeam, pModel, pPnumber, pPhousekey, pPhousekey2, Float:pPos_x, Float:pPos_y, Float:pPos_z, Float:pPos_r, pCarLic, pSpeedo, pFlyLic, pBoatLic, pFishLic, pGunLic, pGuns[12], pAGuns[12], pCarTime, pPayDay, pPayDayHad, pCDPlayer, pWins, pLoses, pAlcoholPerk, pDrugPerk, pMiserPerk, pPainPerk, pTraderPerk, pTut, pWarns, pAdjustable, pMarried, pC4, pC4Get, pC4Used, pMarriedTo[128], pLock, pLockCar, pSprunk, pCigar, pPole, pSpraycan, pRope, pDice, pBombs, pDuty, pFightStyle, pIP[32], pBanned, pPermaBanned, pDisabled, pAccent, pCHits, pFHits, pCrates, pVW, pHouseInvite, pClothes, pRenting, pVehicles, pVehFile, pVehActive, pType1, pTempVIP, pBuddyInvited, pVIPInviteDay, pTokens, pPaintTokens, pType2, pType3, pType4, pType5, pDrugsTime, pLawyerTime, pGangWarn, pFactionBanned, pCSFBanned, pMechTime, pSexTime, pLawyerFreeTime, pGiftTime, pContractBy[32], pContractDetail[64], pBanAppealer, pShopTech, pUndercover, pTogReports, pRadio, pRadioFreq, pDutyHours, pAcceptedHelp, pAcceptReport, pTrashReport, pInsurance, pTriageTime, pVehicleKeys, pVehicleKeysFrom, pTaxiLicense, pTicketTime, pScrewdriver, pSmslog, pSmslog0[256], pSmslog1[256], pSmslog2[256], pSmslog3[256], pSmslog4[256], pSmslog5[256], pSmslog6[256], pSmslog7[256], pSmslog8[256], pSmslog9[256], pKillLog0[256], pKillLog1[256], pKillLog2[256], pKillLog3[256], pKillLog4[256], pKillLog5[256], pKillLog6[256], pKillLog7[256], pKillLog8[256], pKillLog9[256], pWristwatch, pSurveillance, pTire, pFirstaid, pRccam, pReceiver, pGPS, pSweep, pSweepLeft, pBugged, pCheckCash, pChecks, pWExists, Float:pWX, Float:pWY, Float:pWZ, pWVW, pWInt, pWValue, pWObject, pWTimer, pWSeeds, pWarrant[128], pJudgeJailTime, pJudgeJailType, pBeingSentenced, pProbationTime, pDMIndicators, pDMReport0[63], pDMReport1[63], pDMReport2[63], pDMReport3[63], pDMReport4[63], pDMReport5[63], pDMReport6[63], pDMReport7[63], pDMReport8[63], pDMReport9[63], pDMKills, pOrder, pOBlocked, pCallsAccepted, pPatientsDelivered, pLiveBanned, pFreezeBank, pServiceTime, pFirework, pWhirlpool, pHydration, pRacePlayerLaps, pScope, pDoubleEXP, pEXPToken, pHasRefund, }; new PlayerInfo[MAX_PLAYERS+1][pInfo];
Код:
C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(3737) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack") C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(3790) : warning 215: expression has no effect C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(3822) : warning 215: expression has no effect C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(3852) : warning 215: expression has no effect C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(11425) : warning 217: loose indentation C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(11456) : error 017: undefined symbol "GiveDodWeapon" C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(11456) : error 029: invalid expression, assumed zero C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(11456) : warning 215: expression has no effect C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(11456) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Lisa\Bureaublad\VLRP5.pwn(11456) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
11456
Код:
GiveDodWeapon(killerid, PlayerInfo[killerid][pWeapon][w], PlayerInfo[killerid][pWeaponAmmo][w]);
Код:
public OnPlayerDeath(playerid, killerid, reason) { if(IsPlayerConnected(killerid)) { new hour,minute,second, weaponname[32]; gettime(hour,minute,second); FixHour(hour); hour = shifthour; GetWeaponName(reason, weaponname, sizeof(weaponname)); format(PlayerInfo[playerid][pKillLog9], 256, "%s", PlayerInfo[playerid][pKillLog8]); format(PlayerInfo[playerid][pKillLog8], 256, "%s", PlayerInfo[playerid][pKillLog7]); format(PlayerInfo[playerid][pKillLog7], 256, "%s", PlayerInfo[playerid][pKillLog6]); format(PlayerInfo[playerid][pKillLog6], 256, "%s", PlayerInfo[playerid][pKillLog5]); format(PlayerInfo[playerid][pKillLog5], 256, "%s", PlayerInfo[playerid][pKillLog4]); format(PlayerInfo[playerid][pKillLog4], 256, "%s", PlayerInfo[playerid][pKillLog3]); format(PlayerInfo[playerid][pKillLog3], 256, "%s", PlayerInfo[playerid][pKillLog2]); format(PlayerInfo[playerid][pKillLog2], 256, "%s", PlayerInfo[playerid][pKillLog1]); format(PlayerInfo[playerid][pKillLog1], 256, "%s", PlayerInfo[playerid][pKillLog0]); format(PlayerInfo[playerid][pKillLog0], 256, "(%d:%d:%d) %s killed me with %s", hour,minute,second,GetPlayerNameEx(killerid), weaponname); format(PlayerInfo[killerid][pKillLog9], 256, "%s", PlayerInfo[killerid][pKillLog8]); format(PlayerInfo[killerid][pKillLog8], 256, "%s", PlayerInfo[killerid][pKillLog7]); format(PlayerInfo[killerid][pKillLog7], 256, "%s", PlayerInfo[killerid][pKillLog6]); format(PlayerInfo[killerid][pKillLog6], 256, "%s", PlayerInfo[killerid][pKillLog5]); format(PlayerInfo[killerid][pKillLog5], 256, "%s", PlayerInfo[killerid][pKillLog4]); format(PlayerInfo[killerid][pKillLog4], 256, "%s", PlayerInfo[killerid][pKillLog3]); format(PlayerInfo[killerid][pKillLog3], 256, "%s", PlayerInfo[killerid][pKillLog2]); format(PlayerInfo[killerid][pKillLog2], 256, "%s", PlayerInfo[killerid][pKillLog1]); format(PlayerInfo[killerid][pKillLog1], 256, "%s", PlayerInfo[killerid][pKillLog0]); format(PlayerInfo[killerid][pKillLog0], 256, "(%d:%d:%d) Killed %s with %s", hour,minute,second,GetPlayerNameEx(playerid), weaponname); if(GetPVarInt(killerid, "IsInArena") == 0) PlayerInfo[killerid][pDMKills]++; } new string[128]; pTazer[playerid] = 0; InsideShamal[playerid] = INVALID_VEHICLE_ID; DeletePVar(playerid, "SpeedRadar"); DeletePVar(playerid, "UsingSprunk"); KillTimer(GetPVarInt(playerid, "firstaid5")); DeletePVar(playerid, "usingfirstaid"); if(GetPVarInt(playerid, "MovingStretcher") != -1) { KillTimer(GetPVarInt(playerid, "TickEMSMove")); DeletePVar(GetPVarInt(playerid, "MovingStretcher"), "OnStretcher"); SetPVarInt(playerid, "MovingStretcher", -1); } new caller = Mobile[playerid]; if(IsPlayerConnected(Mobile[playerid])) { SendClientMessageEx(caller, COLOR_GRAD2, "The line went dead."); format(string, sizeof(string), "* %s puts away their cellphone.", GetPlayerNameEx(caller)); ProxDetector(30.0, caller, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); CellTime[caller] = 0; Mobile[caller] = INVALID_PLAYER_ID; } Mobile[playerid] = INVALID_PLAYER_ID; CellTime[playerid] = 0; RingTone[playerid] = 0; foreach(Player, i) { if(EMSAccepted[i] < 999) { if(EMSAccepted[i] == playerid) { EMSAccepted[i] = 999; GameTextForPlayer(i, "~w~EMS Caller~n~~r~Has Died", 5000, 1); EMSCallTime[i] = 0; DisablePlayerCheckpoint(i); } } } if( GetPVarInt(playerid, "SpecOff" ) == 1 ) { SpawnPlayer(playerid); return 1; } if(GetPVarInt(playerid, "Injured") == 1) { SendClientMessageEx(playerid, COLOR_WHITE, "You appear to be stuck in limbo, medics are trying to revive you."); KillEMSQueue(playerid); ResetPlayerWeaponsEx(playerid); //SpawnPlayer(playerid); return 1; } if(killerid == INVALID_PLAYER_ID) //BANK ROB { if(BankJobPlayer == playerid) { format(string, sizeof(string), "City Alert: Bank Robber %s was eliminated, the bank robbery has failed!", PlayerName(playerid)); SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerFree(playerid,999,"eliminated"); PlayerInfo[playerid][pWantedLevel] = 0; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pVW] = 0; SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pJailed] = 2; PlayerInfo[playerid][pJailTime] = 3600; RemovePlayerAttachedObject(playerid, 0); TimeAfterBankJob = 0; BankJobPlayer = 999; BankJobTime = -1; BankDeliverTime = -1; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; SetWorldTime(tmphour); } } if(BankJobPlayer == playerid) //BANK ROB { if(IsACop(killerid)) { format(string, sizeof(string), "City Alert: %s %s %s has eliminated bank robber %s and earned $%d!", BANK_JOB_KILLER_EARN); SendClientMessageToAll(COLOR_LIGHTBLUE, string); GivePlayerCash(killerid, BANK_JOB_KILLER_EARN); SetPlayerFree(playerid,killerid,"eliminated"); } else { format(string, sizeof(string), "City Alert: Bank Robber %s was eliminated, the bank robbery has failed!", PlayerName(playerid)); SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerFree(playerid,999,"eliminated"); } RemovePlayerAttachedObject(playerid, 0); PlayerInfo[playerid][pWantedLevel] = 0; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pVW] = 0; SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pJailed] = 2; PlayerInfo[playerid][pJailTime] = 3600; TimeAfterBankJob = 0; BankJobPlayer = 999; BankJobTime = -1; BankDeliverTime = -1; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); tmphour = shifthour; SetWorldTime(tmphour); } new Float:px,Float:py,Float:pz; if(GetPVarInt(playerid, "EventToken") == 0) { if(GetPVarInt(playerid, "IsInArena") == -1) { SetPVarInt(playerid, "Injured", 1); new Float:mX, Float:mY, Float:mZ; GetPlayerPos(playerid, mX, mY, mZ); SetPVarFloat(playerid, "MedicX", mX); SetPVarFloat(playerid, "MedicY", mY); SetPVarFloat(playerid, "MedicZ", mZ); SetPVarInt(playerid, "MedicVW", GetPlayerVirtualWorld(playerid)); SetPVarInt(playerid, "MedicInt", GetPlayerInterior(playerid)); } } gPlayerSpawned[playerid] = 0; if(GetPVarInt(playerid, "IsInArena") >= 0) { if(GetPVarInt(playerid, "AOSlotPaintballFlag") != -1) { switch(PlayerInfo[playerid][pPaintTeam]) { case 1: { DropFlagPaintballArena(playerid, GetPVarInt(playerid, "IsInArena"), 2); } case 2: { DropFlagPaintballArena(playerid, GetPVarInt(playerid, "IsInArena"), 1); } } } if(reason >= 0 && reason <= 46) { new weapon[24]; PlayerInfo[killerid][pKills] += 1; PlayerInfo[playerid][pDeaths] += 1; if(PlayerInfo[killerid][pPaintTeam] == 1) { if(PlayerInfo[killerid][pPaintTeam] == PlayerInfo[playerid][pPaintTeam]) { PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTeamRedKills] -= 1; PaintBallArena[GetPVarInt(playerid, "IsInArena")][pbTeamBlueKills] += 1; SetPlayerHealth(killerid, 0); PlayerInfo[killerid][pKills] -= 2; PlayerInfo[killerid][pDeaths] += 1; PlayerInfo[playerid][pDeaths] -= 1; SendClientMessageEx(killerid, COLOR_WHITE, "You have been warned, do not team-kill!"); } else { PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTeamRedKills] += 1; PaintBallArena[GetPVarInt(playerid, "IsInArena")][pbTeamBlueDeaths] += 1; } } if(PlayerInfo[killerid][pPaintTeam] == 2) { if(PlayerInfo[killerid][pPaintTeam] == PlayerInfo[playerid][pPaintTeam]) { PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTeamBlueKills] -= 1; PaintBallArena[GetPVarInt(playerid, "IsInArena")][pbTeamRedKills] += 1; SetPlayerHealth(killerid, 0); PlayerInfo[killerid][pKills] -= 2; PlayerInfo[killerid][pDeaths] += 1; PlayerInfo[playerid][pDeaths] -= 1; SendClientMessageEx(killerid, COLOR_WHITE, "You have been warned, do not team-kill!"); } PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTeamBlueKills] += 1; PaintBallArena[GetPVarInt(playerid, "IsInArena")][pbTeamRedDeaths] += 1; } GetWeaponName(reason,weapon,sizeof(weapon)); if(reason == 0) { if(PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTimeLeft] < 12) { GivePlayerCash(killerid, 1000); format(string,sizeof(string),"[Paintball Arena] %s has earned $1000 bonus for a sudden death kill!",GetPlayerNameEx(killerid)); SendPaintballArenaMessage(GetPVarInt(killerid,"IsInArena"), COLOR_YELLOW, string); SendAudioToPlayer(killerid, 19, 100, 0); } format(string,sizeof(string),"[Paintball Arena] %s has killed %s with their bare hands!",GetPlayerNameEx(killerid),GetPlayerNameEx(playerid)); } else { if(PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTimeLeft] < 12) { GivePlayerCash(killerid, 1000); format(string,sizeof(string),"[Paintball Arena] %s has earned $1000 bonus for a sudden death kill!",GetPlayerNameEx(killerid)); SendPaintballArenaMessage(GetPVarInt(killerid,"IsInArena"), COLOR_YELLOW, string); SendAudioToPlayer(killerid, 19, 100, 0); } format(string,sizeof(string),"[Paintball Arena] %s has killed %s with a %s.",GetPlayerNameEx(killerid),GetPlayerNameEx(playerid),weapon); } } else { PlayerInfo[playerid][pDeaths] += 1; format(string,sizeof(string),"[Paintball Arena] %s has died.",GetPlayerNameEx(playerid)); } SendPaintballArenaMessage(GetPVarInt(playerid,"IsInArena"), COLOR_RED, string); } PlayerInfo[playerid][pLocal] = 255; GetPlayerPos(playerid, px, py, pz); if(GetPVarInt(playerid, "Injured") == 0) { if( GetPVarInt(playerid, "EventToken") >= 1 || GetPVarInt(playerid, "IsInArena") >= 0) { ResetPlayerWeapons(playerid); } else { ResetPlayerWeaponsEx(playerid); } } if(PlayerInfo[killerid][pAdmin] < 2) { if(reason == 49) { format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just car-rammed %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid); ABroadCast(COLOR_YELLOW, string, 2); print(string); } if(reason == 50) { if(IsAHelicopter(GetPlayerVehicleID(killerid))) { format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just blade-killed %s (ID %d).", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid); ABroadCast(COLOR_YELLOW, string, 2); print(string); } else { if(GetPlayerWeapon(killerid) != 32 || GetPlayerWeapon(killerid) != 28 || GetPlayerWeapon(killerid) != 29) { format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just car-parked %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid); ABroadCast(COLOR_YELLOW, string, 2); print(string); } else { format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just driver-shot %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid); ABroadCast(COLOR_YELLOW, string, 2); print(string); } } } } if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11) { DisablePlayerCheckpoint(playerid); gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE; } if(HaveGPS[playerid]) { KillTimer(GPSTimer[playerid]); HaveGPS[playerid] = false; GPSTimer[playerid] = 0; } ClearCrime(playerid); if(!IsAFK[playerid]) { if(Event[playerid]) { format(string, sizeof(string), "OnEventDeath: %s has killed %s using %s.", RPN(killerid), RPN(playerid), RWN(reason)); foreach(Player, i) { if(Event[i]) SendClientMessage(i, COLOR_REPORT, string); } Event[playerid] = 0; eventdeath[playerid] = 1; } if(Duel[playerid]) { Duel[playerid] = 0; Duel[killerid] = 0; DuelOn = 0; dueldeath[playerid] = 1; dueldeath[killerid] = 0; SetPlayerPos(killerid, eX, eY, eZ); SetPlayerInterior(killerid, PlayerInfo[killerid][pInt]); SetPlayerVirtualWorld(killerid, PlayerInfo[killerid][pVW]); PlayerInfo[killerid][pHospital] = 0; SetPlayerHealth(killerid, eHP); SetPlayerArmour(killerid, eARMOR); SendClientMessage(killerid, COLOR_LIGHTRED, "*** You won the duel, nice job. ***"); GunsBeingRemoved[killerid] = 1; ResetPlayerWeapons(killerid); GunsBeingRemoved[killerid] = 1; for(new w = 0; w < 13; w++) { GiveDodWeapon(killerid, PlayerInfo[killerid][pWeapon][w], PlayerInfo[killerid][pWeaponAmmo][w]); // <-------------- This Line } } if(PlayerPaintballing[playerid] == 1) { for (new i = 0; i < 13; i++) { GetPlayerWeaponData(playerid, i, pbGuns[i][0], pbGuns[i][1]); } format(string, sizeof(string), "OnPaintballDeath: %s has killed %s using %s.", RPN(killerid), RPN(playerid), RWN(reason)); new Float:myhp; GetPlayerHealth(killerid, myhp); SetPlayerHealth(killerid, myhp+30); if(myhp == 100) { SetPlayerHealth(killerid, 100); } foreach(Player, i) { if(PlayerPaintballing[i]) SendClientMessage(i, COLOR_REPORT, string); } PlayerPaintballing[playerid] = 1; } else { PlayerInfo[playerid][pHospital] = 1; PlayerInfo[playerid][pArmor] = 0; if(IsPlayerLoggedIn(killerid)) { format(string, sizeof(string), "OnPlayerDeath: %s has killed %s using %s.", RPN(killerid), RPN(playerid), RWN(reason)); SendAdminMessage(COLOR_DARKRED, 1, string); Log("logs/kill.log", string); PlayerInfo[playerid][pDeath] ++; PlayerInfo[killerid][pKill] ++; if(Hitman[killerid] == playerid) { format(string, sizeof(string), " You have been critically injured by a hitman and lost $%d, the contrat on your head was cleared.", PlayerInfo[playerid][pContract]/2); SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "HitmanWarn: %s has fulfilled the contract on %s's head and collected $%d.", RPN(killerid), RPN(playerid), PlayerInfo[playerid][pContract]/2); SendHitmanMessage(COLOR_YELLOW, string); GiveDodMoney(playerid, -PlayerInfo[playerid][pContract]/2); GiveDodMoney(killerid, PlayerInfo[playerid][pContract]/2); PlayerInfo[playerid][pContract] = 0; format(PlayerInfo[playerid][pContract], 32, ""); Hitman[killerid] = -1; PlayerInfo[killerid][pCSuccess] ++; } if(Hitman[playerid] == killerid) { format(string, sizeof(string), " You have critically injured a hitman and collected $%d, the contrat on your head was cleared.", PlayerInfo[killerid][pContract]); SendClientMessage(killerid, COLOR_YELLOW, string); format(string, sizeof(string), "HitmanWarn: %s has failed the contract on %s's head and lost $%d.", RPN(playerid), RPN(killerid), PlayerInfo[killerid][pContract]); SendHitmanMessage(COLOR_YELLOW, string); GiveDodMoney(playerid, -PlayerInfo[killerid][pContract]); GiveDodMoney(killerid, PlayerInfo[killerid][pContract]); PlayerInfo[killerid][pContract] = 0; format(PlayerInfo[killerid][pContract], 32, ""); Hitman[playerid] = -1; PlayerInfo[playerid][pCFail] ++; } } } } else { GetPlayerPos(playerid, PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid][pZ]); ClearDodWantedLevels(killerid); SetPlayerColor(killerid, TRANSPARENT_ORANGE); PlayerInfo[killerid][pPrison] = 2; PlayerInfo[killerid][pPrisonTime] = AFK[playerid]; format(PlayerInfo[killerid][pPrisonReason], 64, "Killing AFK Players"); format(PlayerInfo[killerid][pPrisonBy], 32, "AutoPrison"); SetPlayerInterior(killerid, 2); SetPlayerVirtualWorld(killerid, 1); new RandomCell = random(sizeof(RandomPrison)); SetPlayerFacingAngle(killerid, RandomPrison[RandomCell][3]); TogglePlayerControllable(killerid, 0); SetTimerEx("EnterExitTimer", 5000, false, "i", killerid); SetPlayerPos(killerid, RandomPrison[RandomCell][0], RandomPrison[RandomCell][1], RandomPrison[RandomCell][2]); SetCameraBehindPlayer(killerid); format(string, sizeof(string), "AdmCmd: %s has been auto-prisoned by MOLE, reason: Killing AFK Players [%d Minutes]", RPN(killerid), AFK[playerid]/60); SendClientMessageToAll(COLOR_LIGHTRED, string); Log("logs/prison.log", string); format(string, sizeof(string), " You have been auto-prisoned for %d minutes (%d seconds)", PlayerInfo[killerid][pPrisonTime]/60, PlayerInfo[killerid][pPrisonTime]); SendClientMessage(killerid, COLOR_LIGHTBLUE, string); } } return 1; }
Код:
public Audio_OnSetPack(audiopack[])
Код:
Audio_Seek(playerid, localhandle, seek);
Код:
Audio_Seek(i, localhandle, seek);
Код:
Audio_Seek(i, localhandle, seek);