Taxi Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Taxi Problem (
/showthread.php?tid=594736)
Taxi Problem -
Ugaustin - 22.11.2015
I have an Km..and it remains 0..i don't know why..
PHP код:
if(TransportTaxi[i])
{
new veh = GetPlayerVehicleID ( i );
new moneys = 0;
foreach ( Player, j )
{
if ( GetPlayerVehicleID ( j ) != veh ) continue;
new side = floatround ( TransportValue [ i ] * ( TransportDistanceMeters [ i ] - TransportDistanceMeters [ j ] ) );
if ( side > GetPlayerCash ( j ) )
{
moneys += GetPlayerCash ( j );
}
else
{
moneys += side;
}
}
format(string, sizeof(string), "~r~%.2f KM~w~: ~g~$%s", floatdiv ( TransportDistanceMeters [ i ], 1000 ), FormatMoney ( moneys ) );
GameTextForPlayer(i, string, 15000, 6);
printf("arrrr");
}
Re: Taxi Problem -
Ugaustin - 22.11.2015
anyone reping
Re: Taxi Problem -
Ugaustin - 22.11.2015
plz, I will rep.. I really need help..
Re: Taxi Problem -
Ugaustin - 22.11.2015
bump
Re: Taxi Problem -
Ugaustin - 23.11.2015
bump
Re: Taxi Problem -
itsCody - 23.11.2015
Where are you increasing the KM driven?
Re: Taxi Problem -
SupperRobin6394 - 23.11.2015
Better question, why are you bumping the topic about once every 3 hours?
Re: Taxi Problem -
N0FeaR - 23.11.2015
Just a reminder bumping a topic in which you have or require further information is allowed after at least 24 hours
Re: Taxi Problem -
PSYCHOBABYKILLA - 23.11.2015
instead of %.2f KM try just %f