Textdraw bug
#1

pawn Код:
format(tds,sizeof(tds),"Time: %d:%d:%d~n~Phone: %d~n~Bank: $%d~n~Age: %d~n~Skin: %d~n~GPS: %s", hours, minutes, seconds, PlayerInfo[i][pPnumber], PlayerInfo[i][pBank], PlayerInfo[i][pAge], PlayerInfo[i][pSkin], zone); }
Results after some time in-game:




Edit:
This happens when driving over 120 km/h:


pawn Код:
if( SPEED[i] == 0 )
            {
                format(tds,sizeof(tds),"Vehicle: %s~n~Health: %.2f~n~Fuel: %.1f~n~GPS: %s~n~Status: %s",VehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],health,Fuel[GetPlayerVehicleID(i)],zone,status);
            }
            else if( SPEED[i] >= 1 && SPEED[i] <= 60)
            {
                format(tds,sizeof(tds),"Vehicle: %s~n~Health: %.2f~n~Fuel: %.1f~n~GPS: %s~n~Status: %s~n~~w~KM/H: %d",VehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],health,Fuel[GetPlayerVehicleID(i)],zone,status,LKPH[i]);
                Fuel[GetPlayerVehicleID(i)] -= 0.02;
            }
            else if( SPEED[i] >= 61 && SPEED[i] <= 120 )
            {
                format(tds,sizeof(tds),"Vehicle: %s~n~Health: %.2f~n~Fuel: %.1f~n~GPS: %s~n~Status: %s~n~~w~KM/H: %d",VehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],health,Fuel[GetPlayerVehicleID(i)],zone,status,LKPH[i]);
                Fuel[GetPlayerVehicleID(i)] -= 0.03;
            }
            else
            {
                format(tds,sizeof(tds),"Time: %d:%d:%d~n~Vehicle: %s~n~Health: %.2f~n~Fuel: %.1f~n~GPS: %s~n~Status: %s~n~~w~KM/H: %d",VehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],health,Fuel[GetPlayerVehicleID(i)],zone,status,LKPH[i]);
                Fuel[GetPlayerVehicleID(i)] -= 0.05;
            }
Edit: After posting the last edit I found out that I forgot to define the Time in the format, this fixed my problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)