24.11.2015, 17:31
hi I got transport taxi, distance everything. it just dosent add when Im going with the taxi.. like "5.60Km = 50$" .. it just appears "0.00Km = 0$" .. why please help..
if(TransportDriver[i] < 999)
{
if(IsPlayerConnected(TransportDriver[i]) && ( PlayerInfo [ TransportDriver[i] ] [ pMember ] == 10 || PlayerInfo [ TransportDriver[i] ] [ pLeader ] == 10 ) )
{
new moneys = floatround ( ( TransportDistanceMeters [ TransportDriver [ i ] ] - TransportDistanceMeters [ i ] ) * TransportValue [ TransportDriver [ i ] ] );
format(string, sizeof(string), "~r~%.2f KM~w~: ~g~$%s",floatdiv ( TransportDistanceMeters [ TransportDriver [ i ] ] - TransportDistanceMeters [ i ], 1000 ), FormatMoney ( moneys ) );
GameTextForPlayer(i, string, 1500, 6);
printf("adddd");
}
}