05/02/2023 08:45 
	
	
	(05/02/2023 03:09)xbruno1000x Escreveu: Pode ser um problema de condicional, manda o código que contém essa parte do kick.
beleza, vou mandar os dois abaixo:
Código PHP:
    if(response == 1)
    {
        new str2[128];
        mysql_format(IDConexao, str2, sizeof(str2), "INSERT INTO `players` (`name`, `password`) VALUES ('%s', '%s')", GetPlayerNome(playerid), inputtext);
        mysql_query(IDConexao, str2);
        Notificacao(playerid, "Spawnado", "Voce acaba de spawnar no servidor, parabens. seja bem vindo ao servidor!");
        TogglePlayerSpectating(playerid, 0);
        SetSpawnInfo(playerid, NO_TEAM, 14,  826.6901,-1345.8523,13.5366, 0.0, 0, 0, 0, 0, 0, 0);
    }
    else
    {
        print("Cancelou");
        Kick(playerid);
    } 
Código PHP:
    if(response == 1)
    {
        new str2[128];
        mysql_format(IDConexao, str2, sizeof(str2), "SELECT * FROM `players` WHERE `name` = '%s' AND `password` = '%s'", GetPlayerNome(playerid), inputtext);
        mysql_tquery(IDConexao, str2, "Login", "i", playerid);
    }
    else
    {
        //Se o jogador clicar em Cancelar ele sai do servidor
        print("Cancelou");
        Kick(playerid);
    } 

	   
	
