MySQL - data refresh
#1

Hi, I have problem with MySQL BlueG r-41, I have command with query:
PHP код:
CMD:giveadmin(playeridparams[])
{
    new 
query[500];
    
mysql_format(DBquerysizeof(query), "UPDATE `test` SET `Admin`='%s' WHERE `Nick`='%s'"paramsGetPlayerNick(playerid)); 
    
mysql_query(DBquery); 
    return 
1;

And enum with data player
{
....
Admin
}

PHP код:
forward OnAccountLoad(playerid);  <-- When player is logging
public OnAccountLoad(playerid)
{
...
cache_get_value_int(0"Admin"Player[playerid][Admin]);

When Player is in game data are loaded and level admin is correct, but when I change this level I always must leave the game, to data has been re-loaded. How refresh data player in game ? (This is version MySQL with cache)

sorry for my english, I'm polish.
Reply


Messages In This Thread
MySQL - data refresh - by Oficer - 10.03.2018, 14:11
Re: MySQL - data refresh - by PepsiCola23 - 10.03.2018, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)