[Ajuda] case
#6

pelo que eu entendi faz assim
PHP код:
        case ClassMafia 0:
        {
            if(
APlayerData[playerid][StatsMafiaJobs] == 500)
            {
                new 
string[128];
                
format(string,sizeof(string),Texto_PPC_Logro1,ReturnPlayerName(playerid),"Mafia ages");
                
SendClientMessageToAll(0x00FF00FF,string);
                
APlayerData[playerid][PlayerMoney] += 500000;
            }
            if(
APlayerData[playerid][StatsMafiaStolen] == 500)
            {
                new 
string[128];
                
format(string,sizeof(string),Texto_PPC_Logro1,ReturnPlayerName(playerid),"Mafia stolen");
                
SendClientMessageToAll(0x00FF00FF,string);
                
APlayerData[playerid][PlayerMoney] += 500000;
            }
            return 
1;
        }  
        case 
ClassMafia 1:
        {
            if(
APlayerData[playerid][StatsMafiaJobs] == 500)
            {
                new 
string[128];
                
format(string,sizeof(string),Texto_PPC_Logro1,ReturnPlayerName(playerid),"Mafia ages");
                
SendClientMessageToAll(0x00FF00FF,string);
                
APlayerData[playerid][PlayerMoney] += 500000;
            }
            if(
APlayerData[playerid][StatsMafiaStolen] == 500)
            {
                new 
string[128];
                
format(string,sizeof(string),Texto_PPC_Logro1,ReturnPlayerName(playerid),"Mafia stolen");
                
SendClientMessageToAll(0x00FF00FF,string);
                
APlayerData[playerid][PlayerMoney] += 500000;
            }
            return 
1;
        } 
Reply


Messages In This Thread
case - by AlexandreRangelMamut - 25.03.2014, 23:40
Re: case - by yNexus - 25.03.2014, 23:53
Re: case - by AlexandreRangelMamut - 26.03.2014, 00:36
Re: case - by yNexus - 26.03.2014, 02:38
Re: case - by AlexandreRangelMamut - 26.03.2014, 10:03
Re: case - by lucas_mdr1235 - 26.03.2014, 12:54

Forum Jump:


Users browsing this thread: 2 Guest(s)