Help wiith mysql
#1

Hi guys! Just having a problem with mysql

So i want to make a system that users with the column value 4 can login and the users without it are going to get kicked

My script

Код:
CheckAccountExists(account[])
{
	new string[128];
    format(string, sizeof(string), "SELECT Certificado FROM usuarios WHERE Nombre = '%s'", account);
    mysql_query(1, string);

	mysql_store_result();
	return true;
}
Код:
    if(CheckAccountExists(Nombre) == 4){JugadorCertificado[playerid] = 1;}
Код:
	if(JugadorCertificado[playerid] == 0)
	{
		new string[128];
		new Nombre[MAX_PLAYER_NAME];
		LimpiarChat(playerid, 12);
		format(Nombre, sizeof(Nombre),"%s", GetPlayerNameRP(playerid));
		format(string, sizeof(string), "Departamento de inmigraciуn: Aъn no has sido aceptado para ingresar al paнs '%s'.", Nombre);
		SendClientMessage(playerid, Amarillo, string);
		SendClientMessage(playerid, Amarillo, "Deberбs certificar tu cuenta primero.");
		KickL(playerid);
	}
My error

Код:
GetRowDataByName() - invalid row index ('0')
Reply


Messages In This Thread
Help with mysql - by arkerooz - 14.10.2016, 19:50
Respuesta: Help wiith mysql - by arkerooz - 14.10.2016, 21:39
Re: Help wiith mysql - by TheDrx - 15.10.2016, 07:40

Forum Jump:


Users browsing this thread: 1 Guest(s)