Help playerinfo
#1

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


1 Error.
That's the error. And here's the line.

Код:
forward SendAdminMessage(color, string[]);
public SendAdminMessage(color, string[])
{
	foreach(Player, i)
	{
		if(PlayerInfo[i][pAdmin] >= 2)
		{
			SendClientMessageEx(i, color, string);
		}
	}
}
Help pls =( im just new on scripting only. ^_^
Reply
#2

pawn Код:
forward SendAdminMessage(color, string[]);
public SendAdminMessage(color, string[])
{
    foreach(Player, i)
    {
        if(pInfo[i][pAdmin] >= 2)
        {
            SendClientMessageEx(i, color, string);
        }
    }
}
If didnt worked, show me your Enum of Player stats saving.
Reply
#3

Quote:

C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP.pwn(1193) : error 017: undefined symbol "pInfo"
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP.pwn(1193) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP.pwn(1193) : error 001: expected token: ";", but found "]"
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP.pwn(1193) : error 029: invalid expression, assumed zero
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP.pwn(1193) : fatal error 107: too many error messages on one line

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


4 Errors.

I got 4 errors after doing that. -.-
Reply
#4

If you do not have the enum in the first place, how can you use it?
Reply
#5

What is enum? I'm just newbie only.
Reply
#6

you need to pot new PlayerInfo; on top of GM -
Reply
#7

Код:
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,
};
This?
Reply
#8

I got new playerinfo on top.
Reply
#9

Move the forward and public below the define of "PlayerInfo".
Reply
#10

There's no define of Playerinfo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)