SA-MP Forums Archive
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 );
                            new 
moneys 0;
                               foreach ( 
Player)
                            {
                                if ( 
GetPlayerVehicleID ) != veh ) continue;
                                new 
side floatround TransportValue ] * ( TransportDistanceMeters ] - TransportDistanceMeters ] ) );
                                if ( 
side GetPlayerCash ) ) 
                                {
                                    
moneys += GetPlayerCash );
                                }
                                else
                                {
                                    
moneys += side;
                                }
                            }
                            
format(stringsizeof(string), "~r~%.2f KM~w~: ~g~$%s"floatdiv TransportDistanceMeters ], 1000 ), FormatMoney moneys ) );
                            
GameTextForPlayer(istring150006);
                            
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