Résolu erreur dans mon code de time played Helpme

Statut
N'est pas ouverte pour d'autres réponses.

pierr0t01

Membre
Inscription
26 Janvier 2014
Messages
502
Réactions
209
Points
2 723
RGCoins
25
Bonjour

je sui en train de coder un tool pour ghosts et le seul probleme que j'ai dans mes stats est au niveau du time played c'est a dire : je Met 3 jour 3h36 min de jeux sur mon tool et dans ghosts cela affiche 7597jours 7h42 56 sec.
Je vous passe mon code C#

decimal numday = 86400;
decimal numhour = 3600;
decimal numminute = 60;
decimal numtotal = this.numericUpDown16.Value * numday + this.numericUpDown14.Value * numhour + this.numericUpDown15.Value * numminute;
byte[] bytes = BitConverter.GetBytes(Convert.ToInt32(numtotal.ToString()));
byte[] timeplayed = { 0, bytes[3], bytes[0], bytes[1], bytes[2] };
PS3.SetMemory(0x178DCBE, timeplayed);
 
Ton offset est pas bonne , tien

decimal numday = 86400;
decimal numhour = 3600;
decimal numminute = 60;
decimal numtotal = this.numericUpDown12.Value * numday + this.numericUpDown10.Value * numhour + this.numericUpDown11.Value * numminute;
byte[] timeplayed = BitConverter.GetBytes(Convert.ToInt32(numtotal.ToString()));
DEX.SetMemory(0x178DC69, timeplayed);
 
Statut
N'est pas ouverte pour d'autres réponses.
Retour
Haut