Quote:
Originally Posted by [J]ulian
pawn Код:
new nombre[MAX_PLAYER_NAME]; GetPlayerName(playerid, nombre, sizeof(nombre)); format(string, sizeof(string), "SELECT * FROM tabla WHERE campo_nombre = '%s'", nombre); mysql_query(string); mysql_store_result(); if(!mysql_num_rows()) { // No existe cuenta. } else if(mysql_num_rows()) { // Existe cuenta. }
|
no hace falta else if, con un else alcanza.