What is wrong?
#5

Uh...
Well the reason it's not giving money == GivePlayerCash..

It's

GivePlayerMoney(playerid, amount);


PHP код:
else if(IsTruckerStart[playerid] == && ccar && IsATruck(tmpcar))
    {
        if(
IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
        {
            
DisablePlayerCheckpoint(playerid);
            new 
randtrucker 30000 random(20000);
            
format(string,sizeof(string),"{FFFF00}You received %s$ for your work.",FormatNumber(randtrucker));
            
SCM(playerid,COLOR_WHITE,string);
            
GivePlayerMoney(playeridrandtrucker);
            
Update(playeridpCashx);
        }
        else return 
SendClientMessage(playerid,COLOR_YELLOW,"Where is the Trailer? ");
    } 

Try that
Reply


Messages In This Thread
What is wrong? - by Sn4ke2 - 12.06.2015, 19:33
Re: What is wrong? - by bgedition - 12.06.2015, 19:37
Re: What is wrong? - by Sn4ke2 - 12.06.2015, 19:43
Re: What is wrong? - by Matess - 12.06.2015, 19:55
Re: What is wrong? - by Prokill911 - 12.06.2015, 19:56

Forum Jump:


Users browsing this thread: 2 Guest(s)