25.01.2010, 12:56
Quote:
Originally Posted by Dreft
Problems again o_O
pawn Code:
Code:
NEW USER ID: 9314 FROM DATABASe: 9313 Code:
NEW USER ID: 1 FROM DATABASE: [here nothing] Code:
[01/25/10 13:33:03] 'mysql_query' executed: "SELECT user_id FROM vartotojai ORDER BY user_id DESC LIMIT 0, 1" with result: "0". [01/25/10 13:33:03] 'mysql_fetch_row' called with result: "9313". pawn Code:
|
EDIT: I also forgot to say, but I had a request from MenaceX to add mysql_fetch_int(), and mysql_fetch_float().
I've added those into the plugin and they're working, and I'll upload it when I get home from school.
So with mysql_fetch_int(), you can do:
Code:
new RegUserID; format(query,sizeof(query),"SELECT user_id FROM vartotojai ORDER BY user_id DESC LIMIT 0, 1"); mysql_query(query); mysql_store_result(); RegUserID = mysql_fetch_int();
Quote:
Originally Posted by OnTop2K9
This is the first time i have used MySql in sa-mp and decided to try this plugin.
Iv got as far as making the tables and storing the but thats it. Could someone make an example login/register script using this plugin? I'm still reading over the example in the first post but I'm not getting any further. Infact i seem to be going backwards ![]() Thanks. |