Refill Bug
#1

i give refill to person. his fuel goes 100.0 fast then goes to the old fuel..so i go with vehicle 97.9 then a Tow car member refills my car goes 100.0 then goes back to 97.9

PHP код:
if( listitem == 12 )
                    {
                    if(
RefillOffer[playerid] < 999)
                    {
                    if(
IsPlayerConnected(RefillOffer[playerid]))
                    {
                    if(
GetPlayerCash(playerid) > RefillPrice[playerid])
                    {
                    new 
TD_String[20];
                    
GetPlayerName(RefillOffer[playerid], giveplayersizeof(giveplayer));
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "* %s ti-a facut plinul acesta te-a costat %dLei.",giveplayer,RefillPrice[playerid]);
                    
SendClientMessage(playeridCOLOR_ORANGEstring);
                    
format(stringsizeof(string), "* Ai facut plinul lui %s cu %dLei",sendername,RefillPrice[playerid]);
                    
SendClientMessage(RefillOffer[playerid], COLOR_YELLOWstring);
                    
GivePlayerCash(playerid, -RefillPrice[playerid]);
                    
GivePlayerCash(RefillOffer[playerid], RefillPrice[playerid]);
                    
//
                    
new SecondFuel VehicleFuel[RefillOffer[playerid]] % 10,//i do right? yea
                    
FirstFuel = (VehicleFuel[RefillOffer[playerid]] - SecondFuel) / 10;
                    
VehicleFuel[RefillOffer[playerid]] = 1000;
                    
format(TD_String20"%i.%i"FirstFuel,SecondFuel);
                     
TextDrawSetString(Text:Values[playerid][2], TD_String);
                     
//
                    
RefillOffer[playerid] = 999;
                    
RefillPrice[playerid] = 0;
                    return 
1;
                    }
                    else
                    {
                    
SendClientMessage(playeridCOLOR_GREY"   You cant afford the Refill !");
                    return 
1;
                    }
                    }
                    return 
1;
                    }
                    else
                    {
                    
SendClientMessage(playeridCOLOR_GREY"   No-one offered to Refill your Car !");
                    return 
1;
                    }
                    } 
Reply
#2

anyone??
Reply
#3

thanks for help see??past 24 hours and no one..probably i dont have friends or no one knows..but i think no one wants to help because no Post Reply!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)