30.11.2014, 12:35
Hello, since I started using new mysql plugin I am kind of confused because a lot of thing have been changed so I am gonna make a request.
Formerly, we would use mysql_store_result and some stuff such as, now I even can not do a simple retrieve;
Can you guys make a function to get player's variable ?
Query example;
That stock must give me a return, I mean the value of tablename sample "money".
NOTE: Do not give me some stuff for old mysql plugin, I need to do that for cache system.
Formerly, we would use mysql_store_result and some stuff such as, now I even can not do a simple retrieve;
Can you guys make a function to get player's variable ?
Код:
stock GetPlayerVariableInt(playername[], tablename[]) // Example
Код:
format(query, sizeof(query), "SELECT `%s` FROM `users` WHERE `name` = '%s'",tablename,playername);
NOTE: Do not give me some stuff for old mysql plugin, I need to do that for cache system.