one error.
#1

PHP код:
switch(PlayerInfo[playerid][team]){ 
error:

PHP код:
error 033: array must be indexed (variable "team"
What is the problem in this?
Reply
#2

can You put the enum pInfo here.?
Reply
#3

PHP код:
enum pInfo {
    
TEAM_ME,
    
TEAM_SE,
    
TEAM_TE,
    
pMoney,
    
pScore,
    
pName,
    
Wolf,
    
Developer,

okay please fix this for me.
Reply
#4

Use this simple system better:
pawn Код:
#define TEAM_ME 0
#define TEAM_SE 1
#define TEAM_TE 2

new team[MAX_PLAYER];

if(team[playerid]==TEAM_ME){ code}
And take the teams out of enumeration...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)