expression has no effect
#1

I'm trying to set Regular player and VIP Player max business,

PHP код:
            #if LIMIT_PER_PLAYER > 0
            
new viplevel pPremium[playerid];
            switch (
viplevel)
            {
                case 
1:
                {
                    
Player_BusinessCount(playerid) + >  LIMIT_PER_PREMPLAYER) return Error(playerid"You can't buy any more businesses."); //the error
                
}
                case 
2:
                {
                     
Player_BusinessCount(playerid) + >  LIMIT_PER_PREM2PLAYER) return Error(playerid"You can't buy any more businesses.");
                }
                case 
3:
                {
                    
Player_BusinessCount(playerid) + >  LIMIT_PER_VIPPLAYER) return Error(playerid"You can't buy any more businesses.");
                }
                default:
                {
                    
Player_BusinessCount(playerid) + LIMIT_PER_PLAYER) return Error(playerid"You can't buy any more businesses.");
                }
            }
            
//if(Player_BusinessCount(playerid) + 1 > LIMIT_PER_PLAYER) return Error(playerid, "You can't buy any more businesses.");
            #endif 
Reply
#2

You're missing the 'if(' from your 'if' statements..
Reply
#3

Quote:
Originally Posted by Threshold
Посмотреть сообщение
You're missing the 'if(' from your 'if' statements..
Example:

pawn Код:
if(Player_BusinessCount(playerid) + 1 >  LIMIT_PER_PREMPLAYER) // rest of code ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)