- 0
Problema contorizare ore .
-
Similar Content
-
- 7 answers
- 2,253 views
-
- 3 answers
- 2,215 views
-
- 3 replies
- 295 views
-
- 1 reply
- 255 views
-
- 1 answer
- 683 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Sprite_RoPlayers
Buna ziua am si urmatoarea problema.
La fiecare pay day in loc sa`i dea nush o ora jucata ii ia din ore.
Si nu se salveaza in baza de date chiar nu inteleg de la ce este chestia asta.
Folosesc gamemode-ul burned.
SCM(i, COLOR_WHITE, "Salariul tau a sosit! Viziteaza banca pentru a retrage banii."); format(string, sizeof(string), "Ai primit %0.2f ore jucate. (%.0f minute)", PlayerInfo[i][pSeconds]/3600, PlayerInfo[i][pSeconds]/60); SCM(i, COLOR_WHITE, string); PlayerInfo[i][pConnectTime] += PlayerInfo[i][pSeconds]/3600; if(PlayerInfo[i][pSeconds] >= 1800) { new query[180]; format(query, sizeof(query), "UPDATE `users` SET `DayHours`=`DayHours`+1 WHERE `ID`='%d'", PlayerInfo[i][pSQLID]); mysql_query(SQL, query); format(query, sizeof(query), "UPDATE `users` SET `HoursMonth`=`HoursMonth`+1 WHERE `ID`='%d'", PlayerInfo[i][pSQLID]); mysql_query(SQL, query);
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now