|
Author
|
Message
|
|
Veteran Member
|

12-25-2009
, 18:51
SQLx Problem
|
#1
|
Hello.
I've got a problem with "SQLx"
This is my problem:
-When im playing and im at the half of the round, I enter to the DB and all the Datas are correctly, when round starts again, I enter to the DB and all my datas and everyone's, are on 0, except the nick.
-When im playing the new round, my data in the game is seted correctly, but in the DB they are on 0
-When I disconnect, I enter to the DB and they still on 0.
-When I rejoin the server, The data loads by nick, and the load work correctly, it load me all on 0 as it was in the DB.
The strange thing is that I dont reset the variables when a new round starts, but for some reason they set to 0.
My event_round_start:
PHP Code:
public event_round_start() { // Remove any tasks bound to custom nades (since they're removed at roundstart) remove_task(TASK_NADES) // Remove doors/lights? set_task(0.2, "remove_stuff") // New round starting g_newround = true g_endround = false g_survround = false g_raptorround = false g_nemround = false g_swarmround = false g_plagueround = false // Reset bought infection bombs counter g_infbombcounter = 0 // Freezetime begins g_freezetime = true // Show welcome message and T-Virus notice remove_task(TASK_WELCOMEMSG) set_task(2.0, "welcome_msg", TASK_WELCOMEMSG) // Set a new "Make Zombie Task" remove_task(TASK_MAKEZOMBIE) set_task(2.0+random_float(get_pcvar_float(cvar_warmup), get_pcvar_float(cvar_warmup)+3.0), "make_zombie_task", TASK_MAKEZOMBIE) }
PD: Thanks for the Traduction, benamo6
__________________
|
|
|
|