[Ajuda] Clickedid <<
#1

Galera eu gostaria de SABER como fazer pra quando clicarem nessa textdraw:
Код HTML:
TeladeLogin6
ABRIR ESSE DIALOG:

PHP код:
forward login_dialog(playerid);
public 
login_dialog(playerid)
{
    if(!
gPlayerLogged[playerid])
    {
        new 
string2[150],Str[500],gstring[400];
        
format(string2sizeof(string2), Pasta_ContasPlayerName(playerid));
         if (
gPlayerLogged[playerid] != 1)
        {
            if(
fexist(string2))//se a conta existe
            
{
                
PlayerTextDrawSetString(playeridNickReg[playerid], Str);
                
format(gstringsizeof gstring,
                
"\n{0038E0}» {FFFFFF}Sua conta: {0038E0}%s {FFFFFF}estб REGISTRADA\n\n\
                {0038E0}» {FFFFFF}Digite sua senha para efetuar o LOGIN\n\n\
                {0038E0}» {0038E0}OBS: {FFFFFF} Nгo passe sua senha б ninguйm!\n\n"
PlayerName(playerid));
                
ShowPlayerDialog(playerid1DIALOG_STYLE_PASSWORD"{0038E0}Brasil {0038E0}Live Games"gstring"Logar""Sair");
            } 



AJUDA AI? TENTEI ANTES DO MEU JEITO DEU WARNINGS PORЙM NГO DEU CERTO AO CLICAR ABRIR(...)
Reply
#2

Esse codigo ta incompleto
Reply
#3

O que falta nele?
Reply
#4

Quote:
Originally Posted by Eiffel
Посмотреть сообщение
O que falta nele?
O resto do cуdigo.
Reply
#5

Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
	if(clickedid == TeladeLogin6)
	{
		login_dialog(playerid);
	}
	return 1;
}
Reply
#6

Quote:
Originally Posted by SmokiieGamer
Посмотреть сообщение
O resto do cуdigo.
Ah sim, aqui esta o resto do cуdigo, porem gostaria da parte de registro para quando clicasse em outra texdraw:

PHP код:
forward login_dialog(playerid);
public 
login_dialog(playerid)
{
    if(!
gPlayerLogged[playerid])
    {
        new 
string2[150],Str[500],gstring[400];
        
format(string2sizeof(string2), Pasta_ContasPlayerName(playerid));
         if (
gPlayerLogged[playerid] != 1)
        {
            if(
fexist(string2))//se a conta existe
            
{
                
PlayerTextDrawSetString(playeridNickReg[playerid], Str);
                
format(gstringsizeof gstring,
                
"\n{0038E0}» {FFFFFF}Sua conta: {0038E0}%s {FFFFFF}estб REGISTRADA\n\n\
                {0038E0}» {FFFFFF}Digite sua senha para efetuar o LOGIN\n\n\
                {0038E0}» {0038E0}OBS: {FFFFFF} Nгo passe sua senha б ninguйm!\n\n"
PlayerName(playerid));
                
ShowPlayerDialog(playerid1DIALOG_STYLE_PASSWORD"{0038E0}Brasil {0038E0}Live Games"gstring"Logar""Sair");
            }
            else
            {
                
PlayerTextDrawSetString(playeridNickReg[playerid], Str);
                
format(gstringsizeof gstring,
                
"\n{{FFFFFF}}» {{FFFFFF}}Logando no Brasil Live Games\n\n\
                {0038E0}» {FFFFFF}Sua conta: {0038E0}%s {FFFFFF}estб {FFFFFF}NГO REGISTRADA\n\
                {0038E0}» {FFFFFF}Digite sua senha para efetuar o REGISTRO\n\n\
                {0038E0}» {0038E0}OBS: {FFFFFF}Nгo passe sua senha б ninguйm!\n\n"
PlayerName(playerid));
                
ShowPlayerDialog(playerid2DIALOG_STYLE_PASSWORD"{0038E0}Brasil {0038E0}Live Games"gstring"Registrar""Sair");
            }
            
//CarregarMsgAtu(playerid);
            
ShowIntro(playerid);
            
SetPlayerCameraPos(playerid1417.6466, -1632.850285.2344);
            
SetPlayerCameraLookAt(playerid1418.4292, -1633.470284.7444);
            
SelectTextDraw(playerid0xAAAAAAFF);
            
ClearChatbox(playerid20);
            
GetPlayerName(playeridplnamesizeof(plname));
            
format(gstring100Pasta_Contasplname);
        }
        
SetPlayerCameraPos(playerid226.43271822.69489.3896);
        
SetPlayerCameraLookAt(playerid225.42901822.68429.1346);
        
InterpolateCameraPos(playerid, -69.0914, -578.58391.1176, -64.0263, -574.66301.986050000);
        
InterpolateCameraLookAt(playerid, -70.4253, -576.43901.5466, -64.4531, -572.29682.470960000);
        
TextDrawShowForPlayer(playeridTextdraw0);
        
TextDrawShowForPlayer(playeridMENSAGEMLOGO);
        
TextDrawShowForPlayer(playeridTextdraw1);
        
TextDrawShowForPlayer(playeridTextdrawbox);
        
TextDrawShowForPlayer(playeridTextdraw3);
        
TextDrawShowForPlayer(playeridTextdraw4);
        
TextDrawShowForPlayer(playeridTextdraw5);
        
TextDrawShowForPlayer(playeridTextdraw6);
        
TextDrawShowForPlayer(playeridTextdraw7);
        
TextDrawShowForPlayer(playeridTextdraw8);
        
TextDrawShowForPlayer(playeridTextdraw9);
        
TextDrawShowForPlayer(playeridTextdraw11);
        
TextDrawHideForPlayer(playeridTextLogin0);
        
TextDrawHideForPlayer(playeridTextLogin1);
        
TextDrawHideForPlayer(playeridTextLogin8);
        
TextDrawHideForPlayer(playeridTextLogin9);
        
TextDrawHideForPlayer(playeridTextLogin10);
           
TextDrawHideForPlayer(playeridtextTelaLogin);
           
CarregarTextEntrada(playerid);
        
SetPlayerSkin(playerid23);
        
SetPlayerInterior(playerid0);
        
Controle(playerid0);
        
//SetPlayerPos(playerid, 227.0743,1822.6564,7.4141);
        //SetPlayerPos(playerid, 1416.6915,-1478.7733,125.3672);
    
}
    return 
1;

Reply
#7

ver se dar ae
PHP код:
public OnPlayerConnect(playerid)
{
    
ShowIntro(playerid); 
    
SetPlayerCameraPos(playerid1417.6466, -1632.850285.2344); 
    
SetPlayerCameraLookAt(playerid1418.4292, -1633.470284.7444); 
    
SelectTextDraw(playerid0xAAAAAAFF); 
    
ClearChatbox(playerid20); 
    
GetPlayerName(playeridplnamesizeof(plname)); 
    
format(gstring100Pasta_Contasplname);  
    
SetPlayerCameraPos(playerid226.43271822.69489.3896); 
    
SetPlayerCameraLookAt(playerid225.42901822.68429.1346); 
    
InterpolateCameraPos(playerid, -69.0914, -578.58391.1176, -64.0263, -574.66301.986050000); 
    
InterpolateCameraLookAt(playerid, -70.4253, -576.43901.5466, -64.4531, -572.29682.470960000); 
    
TextDrawShowForPlayer(playeridTextdraw0); 
    
TextDrawShowForPlayer(playeridMENSAGEMLOGO); 
    
TextDrawShowForPlayer(playeridTextdraw1); 
    
TextDrawShowForPlayer(playeridTextdrawbox); 
    
TextDrawShowForPlayer(playeridTextdraw3); 
    
TextDrawShowForPlayer(playeridTextdraw4); 
    
TextDrawShowForPlayer(playeridTextdraw5); 
    
TextDrawShowForPlayer(playeridTextdraw6); 
    
TextDrawShowForPlayer(playeridTextdraw7); 
    
TextDrawShowForPlayer(playeridTextdraw8); 
    
TextDrawShowForPlayer(playeridTextdraw9); 
    
TextDrawShowForPlayer(playeridTextdraw11); 
    
TextDrawHideForPlayer(playeridTextLogin0); 
    
TextDrawHideForPlayer(playeridTextLogin1); 
    
TextDrawHideForPlayer(playeridTextLogin8); 
    
TextDrawHideForPlayer(playeridTextLogin9); 
    
TextDrawHideForPlayer(playeridTextLogin10); 
    
TextDrawHideForPlayer(playeridtextTelaLogin); 
    
CarregarTextEntrada(playerid); 
    
SetPlayerSkin(playerid23); 
    
SetPlayerInterior(playerid0); 
    
Controle(playerid0); 
    return 
1;
}
public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
clickedid == TEXTLOGAR)
    {
        if(!
gPlayerLogged[playerid]) 
        { 
            new 
string2[150],Str[500],gstring[400]; 
            
format(string2sizeof(string2), Pasta_ContasPlayerName(playerid)); 
            if (
gPlayerLogged[playerid] != 1
            { 
                if(
fexist(string2))//se a conta existe 
                

                    
PlayerTextDrawSetString(playeridNickReg[playerid], Str); 
                    
format(gstringsizeof gstring
                    
"\n{0038E0}» {FFFFFF}Sua conta: {0038E0}%s {FFFFFF}estб REGISTRADA\n\n\ 
                    {0038E0}» {FFFFFF}Digite sua senha para efetuar o LOGIN\n\n\ 
                    {0038E0}» {0038E0}OBS: {FFFFFF} Nгo passe sua senha б ninguйm!\n\n"
PlayerName(playerid)); 
                    
ShowPlayerDialog(playerid1DIALOG_STYLE_PASSWORD"{0038E0}Brasil {0038E0}Live Games"gstring"Logar""Sair"); 
                    
CancelSelectTextDraw(playerid);
                } 
                else 
                { 
                    
SendClientMessage(playerid, -1"Ja estб registrado")
                } 
            }
        }
    }
    if(
clickedid == TEXTREGISTRAR)
    {
        if(!
gPlayerLogged[playerid]) 
        { 
            new 
string2[150],Str[500],gstring[400]; 
            
format(string2sizeof(string2), Pasta_ContasPlayerName(playerid)); 
             if (
gPlayerLogged[playerid] != 1
            { 
                if(
fexist(string2))//se a conta existe 
                

                    
SendClientMessage(playerid, -1"Voce nгo contem conta");
                } 
                else 
                { 
                    
PlayerTextDrawSetString(playeridNickReg[playerid], Str); 
                    
format(gstringsizeof gstring
                    
"\n{{FFFFFF}}» {{FFFFFF}}Logando no Brasil Live Games\n\n\ 
                    {0038E0}» {FFFFFF}Sua conta: {0038E0}%s {FFFFFF}estб {FFFFFF}NГO REGISTRADA\n\ 
                    {0038E0}» {FFFFFF}Digite sua senha para efetuar o REGISTRO\n\n\ 
                    {0038E0}» {0038E0}OBS: {FFFFFF}Nгo passe sua senha б ninguйm!\n\n"
PlayerName(playerid)); 
                    
ShowPlayerDialog(playerid2DIALOG_STYLE_PASSWORD"{0038E0}Brasil {0038E0}Live Games"gstring"Registrar""Sair"); 
                    
CancelSelectTextDraw(playerid);
                } 
            }
        }
    }
    return 
1;

Reply
#8

Eai, deu certo ou nгo?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)