Problem.
#1

Hi, I have a problem when I do not get into checkpoint give money. I did give me money depending on trailer Sorry for my bad english
PHP код:
if(CP[playerid] == truck1 || truck2 || truck3 || truck4 || truck5// finish job
    
{
        new 
string[128], random_money 25000+random(10000);
        {
            if(
GetVehicleTrailer(GetPlayerVehicleID(playerid))) SendClientMessage(playerid0xFFFFFFAA"You are currently towing a trailer.");
            {
                if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
                if(!
IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))){ DisablePlayerCheckpoint(playerid); return 1; }
                {
                    switch ( 
GetVehicleTrailer GetPlayerVehicleID playerid ) ) )
                    {
                        case 
450:
                        {
                            
random_money 25000 random 10000 );
                            
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] +  random_money;
                            
format(string,sizeof(string),"[+]Congratulations you reached the destination. You got $%s "FormatMoney(random_money));
                            
SendClientMessage(playeridCOLOR_GREENstring);
                        }
                        case 
584:
                        {
                            
random_money 35000 random 40000 );
                            
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] +  random_money;
                            
format(string,sizeof(string),"[+]Congratulations you reached the destination. You got $%s "FormatMoney(random_money));
                            
SendClientMessage(playeridCOLOR_GREENstring);
                        }
                    }
                }
            }
        }
   } 
Reply


Messages In This Thread
Problem. - by Cineva - 06.05.2014, 21:23
Re: Problem. - by Bingo - 06.05.2014, 21:38
Re: Problem. - by Cineva - 06.05.2014, 21:41
Re: Problem. - by Syncro - 07.05.2014, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)