25.08.2015, 13:20
PHP код:
mysql_format(dbHandle, g_szBuffer, 120, "SELECT * FROM `"MySQL_PLAYERS_TABLE"` WHERE `pName` = '%s'", getPlayerName(playerid));
new rows, fields;
cache_get_data(rows, fields, dbHandle);
if(rows)
{
cache_get_field_content(0, "pPw", player[playerid][pPw], dbHandle, 130);
loginPlayer(playerid);
}
else
{
registerPlayer(playerid);
}