[+rep] Funtion Not Working
#1

Quote:

case CHECKPOINT_RETURNTRUCK:
{
if(TruckDeliveringTo[vehicleid] != INVALID_BUSINESS_ID)
{
new iBusiness = TruckDeliveringTo[vehicleid];
new Float: iDist = GetPlayerDistanceFromPoint(playerid, Businesses[iBusiness][bSupplyPos][0], Businesses[iBusiness][bSupplyPos][1], Businesses[iBusiness][bSupplyPos][2]);

payment = floatround(iDist / 3000 * payment);
if (payment > 25000) payment = 25000;

GivePlayerCash(playerid, payment);
format(string, sizeof(string), "* You were paid $%d for delivering the goods and returning the vehicle.", payment);

SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
SetVehicleToRespawn(vehicleid);
}
}

Compiler it's okey but when im testing in server funtion giveplayercash and Message with String can't work. Only Respawn vehicle, someone can help me pls
Reply


Messages In This Thread
[+rep] Funtion Not Working - by ScorpiusMalfoy - 16.07.2014, 05:28
Re: [+rep] Funtion Not Working - by nmader - 16.07.2014, 05:38
Re: [+rep] Funtion Not Working - by ScorpiusMalfoy - 16.07.2014, 05:40
Re: [+rep] Funtion Not Working - by Jack_Leslie - 16.07.2014, 05:49
Re: [+rep] Funtion Not Working - by ScorpiusMalfoy - 16.07.2014, 05:52
Re: [+rep] Funtion Not Working - by ScorpiusMalfoy - 16.07.2014, 10:51
Re: [+rep] Funtion Not Working - by Jack_Leslie - 16.07.2014, 10:52
Re: [+rep] Funtion Not Working - by ScorpiusMalfoy - 16.07.2014, 11:20
Re: [+rep] Funtion Not Working - by Stanford - 16.07.2014, 11:21
Re: [+rep] Funtion Not Working - by ScorpiusMalfoy - 16.07.2014, 11:24

Forum Jump:


Users browsing this thread: 7 Guest(s)