16.01.2013, 06:54
You are not using threaded queries correctly.
https://sampforum.blast.hk/showthread.php?tid=337810
https://sampforum.blast.hk/showthread.php?tid=337810
Код:
stock CheckAccountExists(account[]) { new string[128]; format(string, sizeof(string), "SELECT * FROM `users` WHERE `Name` = '%s' LIMIT 1", account); mysql_function_query(mCon, string, true, "CheckAccount", "",""); return 1; }
Код:
forward CheckAccount(); public CheckAccount() { new rows, fields; cache_get_data(rows, fields); if(rows) // registered { } else // Not registered { } }