How to load the clan onplayerrequestclass
#6

First thing i will say, you must set UserStats[playerid][Clan] by default value to -1 because 0 can be a valid clan id, then in your code:

PHP код:
case 4
        { 
            if(
UserStats[playerid][Clan]=>0
            { 
                new 
string[100]; 
                    
format(stringsizeof(string), "%s"ClanInfo[UserStats[playerid][Clan]][ClanName]); 
                    
GameTextForPlayer(playeridstring10004); 
                
//you must have loaded all clan names before somewhere
            

            else
            { 
                
GameTextForPlayer(playerid"~r~YOU ARE NOT IN A CLAN"10004); 
                return 
0//prevents the player from spawning
            

        } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)