- 0
Problema contorizare ore .
-
Similar Content
-
Problema turf
By Soryn.,
- 2 answers
- 222 views
-
- 1 reply
- 177 views
-
Problema
By ImJustSlim,
- 3 answers
- 284 views
-
- 2 replies
- 157 views
-
- 1 answer
- 310 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);
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.