Mess up :S
#6

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)//Pizza
        {
        if(Pizzaboy[playerid] == 1)
        {
        new rand = random(sizeof(PizzaCP));
        SetPlayerCheckpoint(playerid, PizzaCP[rand][0], PizzaCP[rand][1], PizzaCP[rand][2], 5);
        GivePlayerMoney(playerid, PayRandom[rand][0]);// here it try to pay the player a float amount     GameTextForPlayer(playerid, "~y~Go deliver them pizzas", 1000, 5);
        }
Try this

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)//Pizza
        {
        if(Pizzaboy[playerid] == 1)
        {
        new rand = random(sizeof(PizzaCP));
        new prand = random(sizeof(RandomPay));// Change RandomPay to ehat you have named your random pay.
        SetPlayerCheckpoint(playerid, PizzaCP[rand][0], PizzaCP[rand][1], PizzaCP[rand][2], 5);
        GivePlayerMoney(playerid, PayRandom[prand][0]);
        GameTextForPlayer(playerid, "~y~Go deliver them pizzas", 1000, 5);
        }
Reply


Messages In This Thread
Mess up :S - by LeXuZ - 08.12.2014, 20:41
Re: Mess up :S - by Kaperstone - 08.12.2014, 21:15
Re: Mess up :S - by LeXuZ - 08.12.2014, 21:26
Re: Mess up :S - by Kaperstone - 08.12.2014, 21:28
Re: Mess up :S - by LeXuZ - 09.12.2014, 17:11
Re: Mess up :S - by Jakwob - 09.12.2014, 22:58
Re: Mess up :S - by LeXuZ - 10.12.2014, 06:46
Re: Mess up :S - by BroZeus - 10.12.2014, 07:28
Re: Mess up :S - by Jakwob - 11.12.2014, 15:46
Re: Mess up :S - by LeXuZ - 11.12.2014, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)