[Ajuda] Textdraw q clica
#1

Codes:

PHP код:
    TelaLogin[0] = TextDrawCreate(634.94116212.583333"usebox");
    
TextDrawLetterSize(TelaLogin[0], 0.00000046.998146);
    
TextDrawTextSize(TelaLogin[0], 6.4705880.000000);
    
TextDrawAlignment(TelaLogin[0], 1);
    
TextDrawColor(TelaLogin[0], 0);
    
TextDrawUseBox(TelaLogin[0], true);
    
TextDrawBoxColor(TelaLogin[0], 102);
    
TextDrawSetShadow(TelaLogin[0], 0);
    
TextDrawSetOutline(TelaLogin[0], 0);
    
TextDrawFont(TelaLogin[0], 0);
    
TelaLogin[1] = TextDrawCreate(223.52932713.416623"]");
    
TextDrawLetterSize(TelaLogin[1], 0.4499991.600000);
    
TextDrawAlignment(TelaLogin[1], 1);
    
TextDrawColor(TelaLogin[1], -64513);
    
TextDrawSetShadow(TelaLogin[1], 0);
    
TextDrawSetOutline(TelaLogin[1], 1);
    
TextDrawBackgroundColor(TelaLogin[1], 51);
    
TextDrawFont(TelaLogin[1], 2);
    
TextDrawSetProportional(TelaLogin[1], 1);
    
TelaLogin[2] = TextDrawCreate(249.88241513.416625"City Crime - RJ");
    
TextDrawLetterSize(TelaLogin[2], 0.4499991.600000);
    
TextDrawAlignment(TelaLogin[2], 1);
    
TextDrawColor(TelaLogin[2], -1523963137);
    
TextDrawSetShadow(TelaLogin[2], 0);
    
TextDrawSetOutline(TelaLogin[2], 1);
    
TextDrawBackgroundColor(TelaLogin[2], 51);
    
TextDrawFont(TelaLogin[2], 3);
    
TextDrawSetProportional(TelaLogin[2], 1);
    
TelaLogin[3] = TextDrawCreate(386.35272214.000004"]");
    
TextDrawLetterSize(TelaLogin[3], 0.4499991.600000);
    
TextDrawAlignment(TelaLogin[3], 1);
    
TextDrawColor(TelaLogin[3], -65281);
    
TextDrawSetShadow(TelaLogin[3], 0);
    
TextDrawSetOutline(TelaLogin[3], 1);
    
TextDrawBackgroundColor(TelaLogin[3], 51);
    
TextDrawFont(TelaLogin[3], 2);
    
TextDrawSetProportional(TelaLogin[3], 1);
    
TelaLogin[4] = TextDrawCreate(391.17648360.416667"usebox");
    
TextDrawLetterSize(TelaLogin[4], 0.0000005.257406);
    
TextDrawTextSize(TelaLogin[4], 226.2353050.000000);
    
TextDrawAlignment(TelaLogin[4], 1);
    
TextDrawColor(TelaLogin[4], 0);
    
TextDrawUseBox(TelaLogin[4], true);
    
TextDrawBoxColor(TelaLogin[4], 102);
    
TextDrawSetShadow(TelaLogin[4], 0);
    
TextDrawSetOutline(TelaLogin[4], 0);
    
TextDrawFont(TelaLogin[4], 0);
    
TelaLogin[5] = TextDrawCreate(260.23532170.583351"Logar");
    
TextDrawLetterSize(TelaLogin[5], 1.0231762.597499);
    
TextDrawAlignment(TelaLogin[5], 1);
    
TextDrawColor(TelaLogin[5], -5963521);
    
TextDrawSetShadow(TelaLogin[5], 0);
    
TextDrawSetOutline(TelaLogin[5], 1);
    
TextDrawBackgroundColor(TelaLogin[5], 51);
    
TextDrawFont(TelaLogin[5], 3);
    
TextDrawSetProportional(TelaLogin[5], 1);
    
TextDrawSetSelectable(TelaLogin[5], true);
    
TelaLogin[6] = TextDrawCreate(391.647003133.333328"usebox");
    
TextDrawLetterSize(TelaLogin[6], 0.0000005.970371);
    
TextDrawTextSize(TelaLogin[6], 223.8823080.000000);
    
TextDrawAlignment(TelaLogin[6], 1);
    
TextDrawColor(TelaLogin[6], 0);
    
TextDrawUseBox(TelaLogin[6], true);
    
TextDrawBoxColor(TelaLogin[6], 102);
    
TextDrawSetShadow(TelaLogin[6], 0);
    
TextDrawSetOutline(TelaLogin[6], 0);
    
TextDrawSetSelectable(TelaLogin[6], 0);
    
TextDrawFont(TelaLogin[6], 0);
    
TelaLogin[7] = TextDrawCreate(248.941177145.833328"Registrar-me");
    
TextDrawLetterSize(TelaLogin[7], 0.5224702.912499);
    
TextDrawAlignment(TelaLogin[7], 1);
    
TextDrawColor(TelaLogin[7], -5963521);
    
TextDrawSetShadow(TelaLogin[7], 0);
    
TextDrawSetOutline(TelaLogin[7], 1);
    
TextDrawBackgroundColor(TelaLogin[7], 51);
    
TextDrawFont(TelaLogin[7], 3);
    
TextDrawSetProportional(TelaLogin[7], 1);
    
TextDrawSetSelectable(TelaLogin[7], true);
    
TelaLogin[8] = TextDrawCreate(392.117645213.833343"usebox");
    
TextDrawLetterSize(TelaLogin[8], 0.0000005.062961);
    
TextDrawTextSize(TelaLogin[8], 224.3529350.000000);
    
TextDrawAlignment(TelaLogin[8], 1);
    
TextDrawColor(TelaLogin[8], 0);
    
TextDrawUseBox(TelaLogin[8], true);
    
TextDrawBoxColor(TelaLogin[8], 102);
    
TextDrawSetShadow(TelaLogin[8], 0);
    
TextDrawSetOutline(TelaLogin[8], 0);
    
TextDrawSetSelectable(TelaLogin[8], 0);
    
TextDrawFont(TelaLogin[8], 0);
    
TelaLogin[9] = TextDrawCreate(258.352966222.833374"Sair");
    
TextDrawLetterSize(TelaLogin[9], 1.4274112.737500);
    
TextDrawAlignment(TelaLogin[9], 1);
    
TextDrawColor(TelaLogin[9], -5963521);
    
TextDrawSetShadow(TelaLogin[9], 0);
    
TextDrawSetOutline(TelaLogin[9], 1);
    
TextDrawBackgroundColor(TelaLogin[9], 51);
    
TextDrawFont(TelaLogin[9], 3);
    
TextDrawSetProportional(TelaLogin[9], 1);
    
TextDrawSetSelectable(TelaLogin[9], true);
    
TelaLogin[10] = TextDrawCreate(180.82353227.750000"usebox");
    
TextDrawLetterSize(TelaLogin[10], 0.0000001.562962);
    
TextDrawTextSize(TelaLogin[10], 25.7647050.000000);
    
TextDrawAlignment(TelaLogin[10], 1);
    
TextDrawColor(TelaLogin[10], 0);
    
TextDrawUseBox(TelaLogin[10], true);
    
TextDrawBoxColor(TelaLogin[10], 102);
    
TextDrawSetShadow(TelaLogin[10], 0);
    
TextDrawSetOutline(TelaLogin[10], 0);
    
TextDrawFont(Textdraw100);
    
TelaLogin[11] = TextDrawCreate(38.11761826.249986"Recuperar senha");
    
TextDrawLetterSize(TelaLogin[11], 0.4499991.600000);
    
TextDrawAlignment(TelaLogin[11], 1);
    
TextDrawColor(TelaLogin[11], 16711935);
    
TextDrawSetShadow(TelaLogin[11], 0);
    
TextDrawSetOutline(TelaLogin[11], 1);
    
TextDrawBackgroundColor(TelaLogin[11], 51);
    
TextDrawFont(TelaLogin[11], 3);
    
TextDrawSetProportional(TelaLogin[11], 1);
    
TextDrawSetSelectable(TelaLogin[11], true); 
Fiz isso ja fiz com ajuda de um amg e ficou na msm nгo vai fala que ta sem conta criada podem ajudar?

Funзхes clicla: TelaLogin[11], TelaLogin[9], TelaLogin[5], TelaLogin[7]
Reply
#2

Qual o problema ?
Reply
#3

Nao executa a funзгo
Reply
#4

Amigo dк mais informaзхes, ninguйm tem bola de cristal para adivinhar o que ta acontecendo.
Reply
#5

Tipo eu clico '' Logar '' - '' Registrar '' - '' Sair ''

E fala que nao tem conta


Achei isso aiew

Quote:

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == TelaLogin[4]) //Logar
{
if(Player[playerid][Registrado] == false)
{
SendClientMessage(playerid, COR_ERRO, "Vocк ainda nгo tem Conta, se registre primeiro.");
return 1;
}

new String[256];
format(String, sizeof(String), CONTAS, getPName(playerid));
if(!DOF2_FileExists(String))
{
SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк estб bugado, por favor entre novamente.");
Kick(playerid);
return 1;
}

new str[256];
format(str, sizeof(str), "{FFFFFF}Seja bem vindo a {FF0000}Faccoes City - OFICIAL.\n{FF0000}Status: {00FF00}Registrado.\n{FF0000}Nick:{00FF00}%s\n{FFF FFF}Digite uma senha para logar no servidor.", getPName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FF0000}» {FFFFFF}LOGIN Faccoes City {FF0000}«", str, "Logar", #);
}
if(clickedid == TelaLogin[6]) //registrar
{
if(Player[playerid][Registrado] == true)
{
SendClientMessage(playerid, COR_ERRO, "Vocк ja tem uma conta, use o botгo 'Logar'.");
return 1;
}

new String[256];
format(String, sizeof(String), CONTAS, getPName(playerid));
if(DOF2_FileExists(String))
{
SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк estб bugado, por favor entre novamente.");
Kick(playerid);
return 1;
}

new str[512];
format(str, sizeof(str), "{FFFFFF}Seja bem vindo a {FF0000}Faccoes City - OFICIAL.\n{FFFFFF}Status: {FF0000}Nгo registrado.\n{FF0000}Nick:{00FF00}%s\n{FFFFFF}Digi te uma senha para se registrar.", getPName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Registro", str, "Registrar", #);
}
if(clickedid == TelaLogin[11]) //Esqueci minha Senha
{
new string[256];
format(string, sizeof(string), CONTAS, getPName(playerid));

if(Player[playerid][Registrado] == false)
{
SendClientMessage(playerid, COR_ERRO, "Vocк ainda nгo tem Conta, se registre primeiro.");
return 1;
}

if(DOF2_GetInt(string, "TemPergunta") == 0)
{
SendClientMessage(playerid, COR_ERRO, "Sua conta nгo tem uma pergunta secreta definida");
SendClientMessage(playerid, COR_ERRO, "Visite o forum www.equipefc.forumeiros.com e crie um ticket de ajuda");
Kick(playerid);
return 1;
}

format(string, 128, "{FFFFFF}Insira a resposta da pergunta abaixo para recuperar sua senha:\n{ccff00}%s?", DOF2_GetString(string, "Pergunta"));
ShowPlayerDialog(playerid, DIALOG_NEWLOGIN+1, DIALOG_STYLE_INPUT, "Recuperar Senha", string, "Enviar", "Voltar");
}
if(clickedid == TelaLogin[9]) //Sair
{
Kick(playerid);
}
return 1;
}

Reply
#6

Quote:
Originally Posted by HelderPT
Посмотреть сообщение
Tipo eu clico '' Logar '' - '' Registrar '' - '' Sair ''

E fala que nao tem conta


Achei isso aiew
PHP код:
Nossa mano o gamemode da facзхes city ta muito bugado perga de tempo mecher nele namoral msm esse gm foi explanado a ums 3 a 4 anos atras ta muito bugado 
Reply
#7

Quote:
Originally Posted by BrGabrielBr
Посмотреть сообщение
PHP код:
Nossa mano o gamemode da facзхes city ta muito bugado perga de tempo mecher nele namoral msm esse gm foi explanado a ums 3 a 4 anos atras ta muito bugado 
QQ tem cara pqp ;-;
Reply
#8

A bool do Player[playerid][Registrado] й setada quando?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)