Regisering problem [Help = +rep]
#3

Here bro...Check it
[/pawn]public MySQLCheckAccount(sqlplayersname[])
{
//FuncLog("MySQLCheckAccount");
new query[128];
new escstr[MAX_PLAYER_NAME];
mysql_real_escape_string(sqlplayersname, escstr);
format(query, sizeof(query), "SELECT `id` FROM `userinfo` WHERE LOWER(UserName) = LOWER('%s') LIMIT 1 ;", escstr);
mysql_query(query);
mysql_store_result();
if (mysql_num_rows()==0)
{
return 0;
}
else
{
new strid[32];
new intid;
mysql_fetch_row(strid);
intid = strval(strid);
return intid;
}
}[pawn]
Reply


Messages In This Thread
Regisering problem [Help = +rep] - by Jermi - 13.12.2012, 10:56
Re: Regisering problem [Help = +rep] - by Roel - 13.12.2012, 11:02
Re: Regisering problem [Help = +rep] - by Jermi - 13.12.2012, 11:07
Re: Regisering problem [Help = +rep] - by Roel - 13.12.2012, 11:09
Re: Regisering problem [Help = +rep] - by Jermi - 13.12.2012, 11:14
Re: Regisering problem [Help = +rep] - by Jermi - 13.12.2012, 11:17
Re: Regisering problem [Help = +rep] - by Roel - 13.12.2012, 11:20

Forum Jump:


Users browsing this thread: 3 Guest(s)