12.02.2016, 08:05
Hi guys, i changed my Y_INI gm to mysql, because my y_ini files stared to bug, not loading, not saving etc...
so i made this for loading stats:
and i have about 150 lines like that, to load all stats
and here is that callback:
and here is query to call a load...
and this is just too slow, is there another way to speed it up or its just the host mysql too slow?
so i made this for loading stats:
Код:
LoadPStat(playerid, "level", PlayerInfo[playerid][pLevel]);
and here is that callback:
Код:
forward LoadPStat(playerid, what[], &sta);
public LoadPStat(playerid, what[], &sta) {
new tmp[130];
cache_get_field_content(0, what, tmp);
sta = strval(tmp);
return 1;
}
Код:
mysql_format(MySQL, Query, sizeof(Query), "SELECT * FROM `korisnici` WHERE `ime` = '%s'", GetName(playerid)); mysql_function_query(MySQL, Query, true, "UcitajIgraca", "i", playerid);


