question
#3

you missed 1 bracket

heres the fix:

PHP код:
switch(CP[playerid]){
        case 
155: {
            new 
random(housess)+1; new stringe[256];
            if(
== 01;
            
SetPlayerCheckpoint(playeridHouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez], 7.0);
            
format(string,sizeof(string),"(JOB) Pizza livrata cu succes, ai primit $%s.",FormatNumber(pizzaprize[playerid]));
            
SendClientMessage(playeridCOLOR_WHITEstring);
            
format(stringesizeof(stringe), "(JOB) Mergi la punctul rosu de pe minimap pentru a livra urmatoarea pizza, distanta: %0.1fm."GetPlayerDistanceFromPoint(playeridHouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez]));
            
SendClientMessage(playeridCOLOR_WHITEstringe);
            
PlayerInfo[playerid][pPizzaRem]--;
            
PlayerInfo[playerid][pPizzaTimes]++;
            
Update(playerid,pPizzaRemx);
            
Update(playerid,pPizzaTimesx);
            
GivePlayerCash(playerid,pizzaprize[playerid]);
            
Update(playeridpCashx);
            
pizzaprize[playerid] = 0;
            if(
PlayerInfo[playerid][pPizzaSkill] <= 5)
            {
            if(
PlayerInfo[playerid][pPizzaRem] <= 0)
            {
                
PlayerInfo[playerid][pPizzaSkill]++;
                   if(
PlayerInfo[playerid][pPizzaSkill] == 2)
                {
                    
PlayerInfo[playerid][pPizzaRem] = 34;
                }
                else if(
PlayerInfo[playerid][pPizzaSkill] == 3)
                {
                    
PlayerInfo[playerid][pPizzaRem] = 49;
                }
                else if(
PlayerInfo[playerid][pPizzaSkill] == 4)
                {
                    
PlayerInfo[playerid][pPizzaRem] = 89;
                }
                else if(
PlayerInfo[playerid][pPizzaSkill] == 5)
                {
                    
PlayerInfo[playerid][pPizzaRem] = 99;
                }
                
Update(playerid,pPizzaSkillx);
                
Update(playerid,pPizzaRemx);
                new 
stringe[128];
                
format(string,sizeof(string),"Felicitari! Ai acum skill %d pentru acest job!",PlayerInfo[playerid][pPizzaSkill]);
                
format(stringe,sizeof(stringe),"Congratulations! Now you have skill %d for this job!",PlayerInfo[playerid][pPizzaSkill]);
                
SS(playeridCOLOR_YELLOWstringstringe);
            }
        }
    }
    }
    return 
1;

Reply


Messages In This Thread
question - by enzulikeS - 24.05.2018, 17:31
Re: question - by enzulikeS - 26.05.2018, 10:37
Re: question - by Lokii - 26.05.2018, 10:55
Re: question - by enzulikeS - 26.05.2018, 19:56

Forum Jump:


Users browsing this thread: 2 Guest(s)