Quote:
Originally Posted by CamperGTA
PHP код:
stock GetAccountID(playerid)
{
new query[128], name[30];
GetPlayerName(playerid,name,sizeof(name));
format(query, sizeof(query),"SELECT `ID` FROM `players` WHERE BINARY `Name` = '%s'", name);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows() == 1)
{
PlayerInfo[playerid][pID] = mysql_fetch_int();
mysql_free_result();
return PlayerInfo[playerid][pID];
}
return 0;
}
|
Без результатов, все равно выдает регистрацию.