#1

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..
Reply
#2

We need your code to do anything.
Reply
#3

Put your code here and i will be able to help you.
Reply
#4

PHP код:
if(TransportDriver[i] < 999)
                            {
                                if(
IsPlayerConnected(TransportDriver[i]) && ( PlayerInfo TransportDriver[i] ] [ pMember ] == 10 || PlayerInfo TransportDriver[i] ] [ pLeader ] == 10 ) )
                                {
                                    new 
moneys floatround ( ( TransportDistanceMeters TransportDriver ] ] - TransportDistanceMeters ] ) * TransportValue TransportDriver ] ] );
                                    
format(stringsizeof(string), "~r~%.2f KM~w~: ~g~$%s",floatdiv TransportDistanceMeters TransportDriver ] ] - TransportDistanceMeters ], 1000 ), FormatMoney moneys ) );
                                    
GameTextForPlayer(istring15006);
                                    
printf("adddd");
                                }
                            } 
Reply
#5

anyone??
Reply
#6

Tell how these variables work.
Reply
#7

I want so to add distance at each 1km.. and it remains blocked..


new Float:TransportValue[MAX_PLAYERS];

/fare:

TransportValue[playerid] = floatdiv(moneys,1000); TransportDistanceMeters [playerid] = 0;
Reply
#8

bump
Reply
#9

Give some more code about those variables.
Reply
#10

What I think ATGOggy is saying, is that the formula, and the way you are getting those values, may be the cause of it.

Maybe you may want to try some debug print statements to see what it is pulling out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)