How to client save data
Hi. i have problem with save data on change map.
This is not work: Code:
public void OnMapEnd()Code:
public Action Event_Disconnect(Handle event, const char[] name, bool dontBroadcast)What i must do? I need to save data all client to database on end map. Now i use on round end event, but this make high server loads. To save i use mysql on external sever (not localhost). |
Re: How to client save data
use OnClientDisconnect since player disconnects when map ends as well
|
Re: How to client save data
Consider saving only when the data changes, and just never save on disconnect.
|
Re: How to client save data
eyal282 is right ,disconnect is not best idea
|
Re: How to client save data
Quote:
The plugin works so that for each kill you get a gift that you can open. So data change very often (each kill and each gift open). |
Re: How to client save data
Quote:
|
Re: How to client save data
I never use threaded queries :D But i read about it and looks fine. But as i say, never use this before so please help me with that :D
How use it? So far i use this (fragment of code): HTML Code:
DB = SQL_Connect("prezent", true, Error, sizeof(Error)); |
Re: How to client save data
Quote:
Found this on google. |
| All times are GMT -4. The time now is 05:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.