Vip help
#1

Dis give me errors
Код:
PlayerInfo[playerid][pVip] = rank;
Код:
CMD:setvip(playerid, params[])
{
   for(new i=0; i<MAX_PLAYERS; i++)
   {
   if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE:: /setvip [playername/id]");
   new string[987], n[MAX_PLAYER_NAME], targerID;
   GetPlayerName(playerid, n, sizeof(n));
   new rank = 1>5;
   format(string, sizeof(string), " Admin %s has set you vip level %s", n, rank);
   PlayerInfo[playerid][pVip] = rank;
   SendClientMessage(targerID, -1, string);
   SendClientMessage(i, -1,string);
   return 1;
   }
   return 1;
}
Код:
Vip.pwn(240) : error 017: undefined symbol "PlayerInfo"
Vip.pwn(240) : warning 215: expression has no effect
Vip.pwn(240) : error 001: expected token: ";", but found "]"
Vip.pwn(240) : error 029: invalid expression, assumed zero
Vip.pwn(240) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

PlayerInfo is the primary endpoint of a gm ( so to speak ).

how come you do not have?

add to skype.
Reply
#3

i have PPC_Trucking Gm
APlayerData[playerid]
Reply
#4

just add this
Quote:

enum pInfo
{
pWarns,
AdminLevel,
pPass,
pCash,
pLevel,
pSkin,
pInt,
pVW,
pAdmin,
pSecKey,
pKills,
pDeaths,
FloatFacingAngle,
FloatHealth,
FloatArmour,
FloatLastX,
FloatLastY,
bool:Jailed,
FloatLastZ,
}
new PlayerInfo[MAX_PLAYERS][pInfo];

Reply
#5

Код:
\Vip.pwn(263) : error 017: undefined symbol "pVip"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

pawn Код:
enum
{
pVip
}
Reply
#7

Код:
Vip.pwn(266) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#8

Which line is (266) ?
Reply
#9

Код:
PlayerInfo[playerid][pVip] = rank;
Reply
#10

pawn Код:
enum pInfo
{
pWarns,
AdminLevel,
pPass,
pCash,
pLevel,
pSkin,
pVip,
pInt,
pVW,
pAdmin,
pSecKey,
pKills,
pDeaths,
FloatFacingAngle,
FloatHealth,
FloatArmour,
FloatLastX,
FloatLastY,
bool:Jailed,
FloatLastZ,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
thats what you need, replace it with the other enums.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)