Raised This Month: $ Target: $400
 0% 

SQLx Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kiske
Veteran Member
Join Date: May 2009
Old 12-25-2009 , 18:51   SQLx Problem
Reply With Quote #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
__________________

Kiske is offline
Send a message via Skype™ to Kiske
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode