Xp is saved, the plugin is connected to mysql and the tabels is created.
But, sometimes.. the xp is not loaded, is 0, and the xp table is changed to 0 .
PHP Code:
public plugin_end( ) {
SQL_FreeHandle( g_SqlTuple )
}
public client_connect(id)
{
get_user_name( id, g_szName[ id ], charsmax( g_szName[ ] ) )
set_task(1.5,"LoadData",id)
set_task(2.0,"LoadData",id)
set_task(1.5,"RemoveAll",id)
}
public client_disconnect ( id ) {
SaveData ( id );
RemoveAll ( id );
}
</b>
In client_disconnect is necessary to add get_user_name ?