03.02.2014, 12:16
PHP код:
GetAccountID(playerid)
{
GetPlayerName(playerid, sn, sizeof(sn));
format(query, 128,"SELECT ID FROM "TABLE_ACCOUNT" WHERE Name = '%s'", sn);
mysql_tquery(1, query, "", "");
mysql_store_result();
if(mysql_num_rows() == 1)
{
PlayerInfo[playerid][pID] = mysql_fetch_int();
mysql_free_result();
return PlayerInfo[playerid][pID];
}
return 0;
}
PHP код:
error 017: undefined symbol "mysql_fetch_int"
PHP код:
PlayerInfo[playerid][pID] = mysql_fetch_int();