[Ajuda] OnPlayerClickPlayerTextDraw
#4

Quote:
Originally Posted by GabrielDias_Invision
Посмотреть сообщение
Acredito que tenha fechado a chave do TextDraw de logar no lugar errado. Testa aew:
PHP код:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(
playertextid == TextoNewLogin[playerid])
    {
        new 
string[100];
        new 
plname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridplnamesizeof(plname));
        
format(gstring64"Players/%s.ini"plname);
        
CancelSelectTextDraw(playerid);
        if(
fexist(gstring))
        {
            new 
loginstring[255];
            new 
loginname[64];
            
GetPlayerName(playerid,loginname,sizeof(loginname));
            
//Deveria ter uma frase [ sua conta jб esta registrada ]
            
format(loginstring,sizeof(loginstring),"{FFFFFF}Bem Vindo: %s\n\nStatus da Conta: {00FF00}Registrada\n\n{FFFFFF}Digite sua Senha Para Logar!\n\n ",loginname);
            
ShowPlayerDialog(playerid1DIALOG_STYLE_PASSWORD,"{FFFFFF}Logando",loginstring,"Logar","Esperar");
        }
        else
        {
            new 
loginstring[300];
            new 
loginname[64];
            
GetPlayerName(playerid,loginname,sizeof(loginname));
            
format(loginstring,sizeof(loginstring),"{33FF00}{FFFFFF}Bem Vindo(a): {FF0000}%s\n\n{FFFFFF}Conta nгo registrada\n\nDigite sua Senha para se Registrar!\n\n ",loginname);
            
ShowPlayerDialog(playerid2DIALOG_STYLE_PASSWORD,"{B40404}Registrando",loginstring,"Registrar","Esperar");
            
format(stringsizeof(string), "Bem vindo(a) ao %s"SCRIPT_VERSION);
            
SendClientMessage(playeridCOR_VAGOSstring);
            
SendClientMessage(playerid0xFFA500FF"Vocк nгo estб registrado, para poder jogar vocк precisa se registrar");
            
//SendClientMessage(playerid, 0xFFA500FF, "registrar estб conta primeiro.");
        
}
    }
    if(
playertextid == TextoNewSair[playerid])
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED,"Vocк decidiu sair do servidor.");
        
Kick(playerid);
        return 
1;
    }
    if(
playertextid == TextoCreditos[playerid])
    {
        new 
DialoTOWNSE;
        if(
IsPlayerConnected(playerid))
        {
            
ShowPlayerDialog(playeridDialoTOWNSEDIALOG_STYLE_MSGBOX"{FE642E}Creditos/Equipe""{ffffff}Fundadore:\n{FA58F4}Deagle {ffffff}e {FA58F4}KtroN\n\n{ffffff}Scripter/Mapper:\n{FA58F4}Deagle_Vilhena\n\n{ffffff}Administradores:\n{FA58F4}ANN_Joker\n\nTeteu_Staff\n\n\n•FIM•""Informado""");
        }
    }
    if(
playertextid == TextoNewRegistro[playerid]) //karaio
    
{
        new 
loginstring[300];
        new 
loginname[64];
        
GetPlayerName(playerid,loginname,sizeof(loginname));
        
format(loginstring,sizeof(loginstring),"{33FF00}{FFFFFF}Bem Vindo(a): {FF0000}%s\n\n{FFFFFF}Conta nгo registrada\n\nDigite sua Senha para se Registrar!\n\n ",loginname);
        
ShowPlayerDialog(playerid2DIALOG_STYLE_PASSWORD,"B40404}Registrando",loginstring,"Registrar","Esperar");
        
format(stringsizeof(string), "Bem vindo(a) ao %s"SCRIPT_VERSION);
        
SendClientMessage(playeridCOR_VAGOSstring);
        
//SendClientMessage(playerid, 0xFFA500FF, "Vocк nгo estб registrado, para poder jogar vocк precisa");
        //SendClientMessage(playerid, COR_AL, "registrar estб conta primeiro.");
    
}
    if(
playertextid == TextoNewForum[playerid])
    {
        
SendClientMessage(playerid0xffffffFF"WWW.PLAYHISTORY.FORUMEIROS.COM");
    }
    if(
playertextid == TextoTs[playerid])
    {
        
SendClientMessage(playerid0xffffffFF"IP: {0000ff}206.221.181.8");
    }
    return 
1;

Valeu, resolveu....

@Wanderson_SAMP

Valeu os dois ai, da proxima irei prestar mais atenзгo, mais achei estranho porque usei um tabulador..
Reply


Messages In This Thread
OnPlayerClickPlayerTextDraw - by iDeagle_Hurley - 01.03.2015, 14:17
Re: OnPlayerClickPlayerTextDraw - by GabrielDias_Invision - 01.03.2015, 14:28
Re: OnPlayerClickPlayerTextDraw - by Wanderson_SAMP - 01.03.2015, 15:23
Re: OnPlayerClickPlayerTextDraw - by iDeagle_Hurley - 01.03.2015, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)