14.10.2016, 19:50
(
Последний раз редактировалось arkerooz; 14.10.2016 в 21:35.
)
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
My error
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); }
Код:
GetRowDataByName() - invalid row index ('0')