Help playerinfo -.-
#1

Код:
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(1194) : error 017: undefined symbol "PlayerInfo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I really need help. 0.0

Here's the line.

Код:
forward SendAdminMessage(color, string[]);
public SendAdminMessage(color, string[])
{
	foreach(Player, i)
	{
		if(PlayerInfo[i][pAdmin] >= 2)
		{
			SendClientMessageEx(i, color, string);
		}
	}
}
Here's my Enum.

Код:
enum pInfo
{
	pKey[129],
	pLevel,
	pAdmin,
	pAdminName[32],
	pBanAppealer,
	pGangMod,
	pDonator,
	pBanned,
	pPermaBanned,
	pDisabled,
	pIP[16],
	pReg,
 	pTut,
	pSex,
	pAge,
	pSkin,
	Float:pPos_x,
	Float:pPos_y,
	Float:pPos_z,
	Float:pPos_r,
	pConnectTime,
	pRespect,
	pNumber,
	pWarns,
	pGang,
	pFaction,
	pLeader,
	pRank,
	pJob,
	pJob2,
	gPupgrade,
	Float:pSarmor,
	pCash,
	pBank,
	pInsurance,
	pCrimes,
	pArrested,
	pWantedLevel,
	Float:pHealth,
	Float:pArmor,
	pPot,
	pCrack,
	pPackages,
	pCrates,
	pRadio,
	pRadioFreq,
	pPhoneBook,
	pDice,
	pCDPlayer,
	pMats,
	pRope,
	pCigar,
	pSprunk,
	pSpraycan,
	pHouse,
	pHouse2,
	pRenting,
	pInt,
	pVW,
	pJailed,
	pJailTime,
	pGuns[12],
	pAGuns[12],
	pPayCheck,
	pPayReady,
	pHospital,
	pDetSkill,
	pLawSkill,
	pSexSkill,
	pDrugsSkill,
	pSmugSkill,
	pArmsSkill,
	pMechSkill,
	pFishSkill,
	pBoxSkill,
	pTruckSkill,
	pCarSkill,
	//pCraftSkill,
	pLawyerTime,
	pLawyerFreeTime,
	pDrugsTime,
	pMechTime,
	pSexTime,
	pCarTime,
	pFishes,
	pBiggestFish,
	pLockCar, // non-saved
	pWeedObject,
	Float: pWeedPos[3],
	pWeedVW,
	pWeedInt,
	pWeedGrowth,
	pWSeeds,
	pWins,
	pLoses,
	pFightStyle,
	pScrewdriver,
	pSmslog,
	pWristwatch,
	pTire,
	pFirstaid,
	pRccam,
	pReceiver,
	pGPS,
	pSweep,
	pSweepLeft,
	pBugged,
	pVehicleKeys,
	pVehicleKeysFrom,
	pDuty,
	pCarLic,
	pFlyLic,
	pBoatLic,
	pFishLic,
	pGunLic,
	pDivision,
	pLiveBanned,
	pTicketTime,
	pHeadValue,
	pContractBy[32],
	pContractDetail[64],
	pC4,
	pC4Get,
	pC4Used,
	pBombs,
	pCHits,
	pFHits,
	pPrisonedBy[MAX_PLAYER_NAME],
	pPrisonReason[128],
	pAcceptReport,
	pTrashReport,
	pAccent,
	pNMute,
	pNMuteTotal,
	pADMute,
	pADMuteTotal,
	pRMuted,
	pRMutedTotal,
	pRMutedTime,
	pSpeedo,
	pGCMuted,
	pGCMutedTime,
	pCallsAccepted,
	pHelper,
	pPatientsDelivered,
	pTriageTime,
	pMarried,
	pMarriedTo[MAX_PLAYER_NAME],
	pKillLog0[128],
	pKillLog1[128],
	pKillLog2[128],
	pKillLog3[128],
	pKillLog4[128],
	pKillLog5[128],
	pKillLog6[128],
	pKillLog7[128],
	pKillLog8[128],
	pKillLog9[128],
	pFlag[128],
	pReferredBy[MAX_PLAYER_NAME],
	pRefTokens,
	pRefTokensOffline,
};
new PlayerInfo[MAX_PLAYERS+1][pInfo];
I really don't know how to fix this. -.-
Reply
#2

Код:
enum pInfo
{
	pKey[129],
	pLevel,
	pAdmin,
	pAdminName[32],
	pBanAppealer,
	pGangMod,
	pDonator,
	pBanned,
	pPermaBanned,
	pDisabled,
	pIP[16],
	pReg,
 	pTut,
	pSex,
	pAge,
	pSkin,
	Float:pPos_x,
	Float:pPos_y,
	Float:pPos_z,
	Float:pPos_r,
	pConnectTime,
	pRespect,
	pNumber,
	pWarns,
	pGang,
	pFaction,
	pLeader,
	pRank,
	pJob,
	pJob2,
	gPupgrade,
	Float:pSarmor,
	pCash,
	pBank,
	pInsurance,
	pCrimes,
	pArrested,
	pWantedLevel,
	Float:pHealth,
	Float:pArmor,
	pPot,
	pCrack,
	pPackages,
	pCrates,
	pRadio,
	pRadioFreq,
	pPhoneBook,
	pDice,
	pCDPlayer,
	pMats,
	pRope,
	pCigar,
	pSprunk,
	pSpraycan,
	pHouse,
	pHouse2,
	pRenting,
	pInt,
	pVW,
	pJailed,
	pJailTime,
	pGuns[12],
	pAGuns[12],
	pPayCheck,
	pPayReady,
	pHospital,
	pDetSkill,
	pLawSkill,
	pSexSkill,
	pDrugsSkill,
	pSmugSkill,
	pArmsSkill,
	pMechSkill,
	pFishSkill,
	pBoxSkill,
	pTruckSkill,
	pCarSkill,
	//pCraftSkill,
	pLawyerTime,
	pLawyerFreeTime,
	pDrugsTime,
	pMechTime,
	pSexTime,
	pCarTime,
	pFishes,
	pBiggestFish,
	pLockCar, // non-saved
	pWeedObject,
	Float: pWeedPos[3],
	pWeedVW,
	pWeedInt,
	pWeedGrowth,
	pWSeeds,
	pWins,
	pLoses,
	pFightStyle,
	pScrewdriver,
	pSmslog,
	pWristwatch,
	pTire,
	pFirstaid,
	pRccam,
	pReceiver,
	pGPS,
	pSweep,
	pSweepLeft,
	pBugged,
	pVehicleKeys,
	pVehicleKeysFrom,
	pDuty,
	pCarLic,
	pFlyLic,
	pBoatLic,
	pFishLic,
	pGunLic,
	pDivision,
	pLiveBanned,
	pTicketTime,
	pHeadValue,
	pContractBy[32],
	pContractDetail[64],
	pC4,
	pC4Get,
	pC4Used,
	pBombs,
	pCHits,
	pFHits,
	pPrisonedBy[MAX_PLAYER_NAME],
	pPrisonReason[128],
	pAcceptReport,
	pTrashReport,
	pAccent,
	pNMute,
	pNMuteTotal,
	pADMute,
	pADMuteTotal,
	pRMuted,
	pRMutedTotal,
	pRMutedTime,
	pSpeedo,
	pGCMuted,
	pGCMutedTime,
	pCallsAccepted,
	pHelper,
	pPatientsDelivered,
	pTriageTime,
	pMarried,
	pMarriedTo[MAX_PLAYER_NAME],
	pKillLog0[128],
	pKillLog1[128],
	pKillLog2[128],
	pKillLog3[128],
	pKillLog4[128],
	pKillLog5[128],
	pKillLog6[128],
	pKillLog7[128],
	pKillLog8[128],
	pKillLog9[128],
	pFlag[128],
	pReferredBy[MAX_PLAYER_NAME],
	pRefTokens,
	pRefTokensOffline
}
new PlayerInfo[MAX_PLAYERS][pInfo];
There you go
Reply
#3

Код:
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(1194) : error 017: undefined symbol "PlayerInfo"
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12597) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12669) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12675) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12677) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12679) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12680) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12682) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12684) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12686) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12731) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12736) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12743) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12745) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12746) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12748) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12750) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12860) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12865) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12870) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12875) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12876) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12878) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12882) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12883) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP2.pwn(12913) : error 032: array index out of bounds (variable "PlayerInfo")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
LOL! i got this errors after doing that. @_@ anyone can help pls?
Reply
#4

Anyone please?
Reply
#5

LOL, wow that dude failed. Here is your fix.

pawn Код:
enum pInfo
{
    pKey[129],
    pLevel,
    pAdmin,
    pAdminName[32],
    pBanAppealer,
    pGangMod,
    pDonator,
    pBanned,
    pPermaBanned,
    pDisabled,
    pIP[16],
    pReg,
    pTut,
    pSex,
    pAge,
    pSkin,
    Float:pPos_x,
    Float:pPos_y,
    Float:pPos_z,
    Float:pPos_r,
    pConnectTime,
    pRespect,
    pNumber,
    pWarns,
    pGang,
    pFaction,
    pLeader,
    pRank,
    pJob,
    pJob2,
    gPupgrade,
    Float:pSarmor,
    pCash,
    pBank,
    pInsurance,
    pCrimes,
    pArrested,
    pWantedLevel,
    Float:pHealth,
    Float:pArmor,
    pPot,
    pCrack,
    pPackages,
    pCrates,
    pRadio,
    pRadioFreq,
    pPhoneBook,
    pDice,
    pCDPlayer,
    pMats,
    pRope,
    pCigar,
    pSprunk,
    pSpraycan,
    pHouse,
    pHouse2,
    pRenting,
    pInt,
    pVW,
    pJailed,
    pJailTime,
    pGuns[12],
    pAGuns[12],
    pPayCheck,
    pPayReady,
    pHospital,
    pDetSkill,
    pLawSkill,
    pSexSkill,
    pDrugsSkill,
    pSmugSkill,
    pArmsSkill,
    pMechSkill,
    pFishSkill,
    pBoxSkill,
    pTruckSkill,
    pCarSkill,
    //pCraftSkill,
    pLawyerTime,
    pLawyerFreeTime,
    pDrugsTime,
    pMechTime,
    pSexTime,
    pCarTime,
    pFishes,
    pBiggestFish,
    pLockCar, // non-saved
    pWeedObject,
    Float: pWeedPos[3],
    pWeedVW,
    pWeedInt,
    pWeedGrowth,
    pWSeeds,
    pWins,
    pLoses,
    pFightStyle,
    pScrewdriver,
    pSmslog,
    pWristwatch,
    pTire,
    pFirstaid,
    pRccam,
    pReceiver,
    pGPS,
    pSweep,
    pSweepLeft,
    pBugged,
    pVehicleKeys,
    pVehicleKeysFrom,
    pDuty,
    pCarLic,
    pFlyLic,
    pBoatLic,
    pFishLic,
    pGunLic,
    pDivision,
    pLiveBanned,
    pTicketTime,
    pHeadValue,
    pContractBy[32],
    pContractDetail[64],
    pC4,
    pC4Get,
    pC4Used,
    pBombs,
    pCHits,
    pFHits,
    pPrisonedBy[MAX_PLAYER_NAME],
    pPrisonReason[128],
    pAcceptReport,
    pTrashReport,
    pAccent,
    pNMute,
    pNMuteTotal,
    pADMute,
    pADMuteTotal,
    pRMuted,
    pRMutedTotal,
    pRMutedTime,
    pSpeedo,
    pGCMuted,
    pGCMutedTime,
    pCallsAccepted,
    pHelper,
    pPatientsDelivered,
    pTriageTime,
    pMarried,
    pMarriedTo[MAX_PLAYER_NAME],
    pKillLog0[128],
    pKillLog1[128],
    pKillLog2[128],
    pKillLog3[128],
    pKillLog4[128],
    pKillLog5[128],
    pKillLog6[128],
    pKillLog7[128],
    pKillLog8[128],
    pKillLog9[128],
    pFlag[128],
    pReferredBy[MAX_PLAYER_NAME],
    pRefTokens,
    pRefTokensOffline
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#6

Send me your script via PM.
Reply
#7

Quote:
Originally Posted by ACI
Посмотреть сообщение
Send me your script via PM.
I definitely wouldn't do that. He's only trying to steal your script.
Reply
#8

Quote:
Originally Posted by zDivine
Посмотреть сообщение
I definitely wouldn't do that. He's only trying to steal your script.
I'm not a that type of guy who steals scripts, I just want to solve his problem.
Reply
#9

I got the same errors after doing that.
Reply
#10

Make sure you are putting the enum and PlayerInfo variable definition above all your other code, where you are calling PlayerInfo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)