SA-MP Forums Archive
SelectTextDraw no funciona correctamente - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: SelectTextDraw no funciona correctamente (/showthread.php?tid=637465)



SelectTextDraw no funciona correctamente - MeScript2212 - 15.07.2017

Hola, que estб mal de este code? Al parecer me pone en el menъ de Select pero cuando intento clickear el textdraw no hace nada, es decir, como si no fuera para selectear y esa bool de select de ese TD esta en true. Ayuda
Код:
	if(INI_Exist(playername)) // Si estб registrado...
	{


		PlayerIsRegistered(playerid);
		INI_ParseFile(UserPath(playerid), "LoadUser_pass", .bExtra = true, .extra = playerid);
	    PlayerTextDrawSetString(playerid, PlayerLoginTextDraw[playerid][0], "Login");
	    ShowLoginTextDraws(playerid);
	    SelectTextDraw(playerid, 0x80808080);
		//ShowPlayerDialog(playerid,DLOGIN,DIALOG_STYLE_PASSWORD ," ","Ingresa tu contraseсa.","Entrar","Salir");
		return 1;
	}
	else // Si no...
	{



		PlayerIsNotRegistered(playerid);
		PlayerTextDrawSetString(playerid, PlayerLoginTextDraw[playerid][0], "Registro");
		ShowLoginTextDraws(playerid);
		SelectTextDraw(playerid, 0x80808080);
		//ShowPlayerDialog(playerid,DREGISTER,DIALOG_STYLE_PASSWORD ," ","Esta cuenta no estб registrada, introduce una contraseсa.","Registrar","Salir");
		return 1;
	}



//Stock de showlogin

stock ShowLoginTextDraws(playerid)//Mostramos el login al jugador, en este caso login o registro
{
		PlayerTextDrawShow(playerid, PlayerLoginTextDraw[playerid][0]);//Mostramos todas
		PlayerTextDrawShow(playerid, PlayerLoginTextDraw[playerid][1]);
		TextDrawShowForPlayer(playerid, GlobalLoginTextDraw[0]);
		SelectTextDraw(playerid, 0x1170FFFF);
}



Respuesta: SelectTextDraw no funciona correctamente - Marshmello - 15.07.2017

intenta haci
PHP код:
if(INI_Exist(playername)) // Si estб registrado...
    
{
        
PlayerIsRegistered(playerid);
        
INI_ParseFile(UserPath(playerid), "LoadUser_pass", .bExtra true, .extra playerid);
        
PlayerTextDrawSetString(playeridPlayerLoginTextDraw[playerid][0], "Login");
        
ShowLoginTextDraws(playerid);
        
SelectTextDraw(playerid0xFF0000FF);
        
//ShowPlayerDialog(playerid,DLOGIN,DIALOG_STYLE_PASSWORD ," ","Ingresa tu contraseсa.","Entrar","Salir");
        
return 1;
    }
    else 
// Si no...
    
{
        
PlayerIsNotRegistered(playerid);
        
PlayerTextDrawSetString(playeridPlayerLoginTextDraw[playerid][0], "Registro");
        
ShowLoginTextDraws(playerid);
        
SelectTextDraw(playerid0xFF0000FF);
        
//ShowPlayerDialog(playerid,DREGISTER,DIALOG_STYLE_PASSWORD ," ","Esta cuenta no estб registrada, introduce una contraseсa.","Registrar","Salir");
        
return 1;
    }
//Stock de showlogin
stock ShowLoginTextDraws(playerid)//Mostramos el login al jugador, en este caso login o registro
{
        
PlayerTextDrawShow(playeridPlayerLoginTextDraw[playerid][0]);//Mostramos todas
        
PlayerTextDrawShow(playeridPlayerLoginTextDraw[playerid][1]);
        
TextDrawShowForPlayer(playeridGlobalLoginTextDraw[0]);
        
SelectTextDraw(playerid0xFF0000FF);

PD: Te Reconmiendo Que Uses Sqlite o Mysql Ya Que INI Es Viejo


Respuesta: SelectTextDraw no funciona correctamente - MeScript2212 - 15.07.2017

Hola no me funcionу, otra forma de hacerlo? Se ejecuta en OnPlayerConnect esa funciуn por si necesitaban la info


Respuesta: SelectTextDraw no funciona correctamente - Marshmello - 15.07.2017

Quote:
Originally Posted by MeScript2212
Посмотреть сообщение
Hola no me funcionу, otra forma de hacerlo? Se ejecuta en OnPlayerConnect esa funciуn por si necesitaban la info
Pues Mejor Quitar El Inicio De Sesion Por Textdraw y Replazalo Por Un Dialogo Es Mejor


Respuesta: SelectTextDraw no funciona correctamente - MeScript2212 - 15.07.2017

Ya lo solucionй, quieres ver como quedу?



Creditos al mapper