[Ayuda] Asignar valores a variables del gm (MySQL)
#4

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.
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)