22.01.2013, 22:13
You are not querying the database when the player connects, therefore any data stored there is not being found.
You need something like this:
You need something like this:
Код:
format(query,sizeof(query),"SELECT `Username` FROM `Accounts` WHERE `Username` = '%s' LIMIT 0 , 30;",name); mysql_query(query); mysql_store_result(); if(mysql_num_rows() != 0) { //do something here }