[Ajuda] Login em Textdraw
#1

Bom, o gamemode possui um login em textdraw e que mesmo eu trocando posiзхes, as palavras e excluindo alguns text, nгo estгo sumindo ou mudando em absolutamente nada. Procurei em todo o gamemode se hб alguma outra localizaзгo do login mas nгo hб. OBS: Estou abrindo e copilando a correta. E quando compilo, nгo aparece nenhum erro.

Quote:

Cуdigo do login:
new Text:registro_draw[9];

Quote:

public OnGameModeInit()
registro_draw[0] = TextDrawCreate(288.9998, 145.2933, "LD_SPAC:white"); // пусто
TextDrawTextSize(registro_draw[0], 63.0000, 2.0000);
TextDrawAlignment(registro_draw[0], 1);
TextDrawColor(registro_draw[0], -5963521);
TextDrawBackgroundColor(registro_draw[0], 255);
TextDrawFont(registro_draw[0], 4);
TextDrawSetProportional(registro_draw[0], 0);
TextDrawSetShadow(registro_draw[0], 0);

registro_draw[1] = TextDrawCreate(288.9998, 244.6003, "LD_SPAC:white"); // пусто
TextDrawTextSize(registro_draw[1], 63.0000, 2.0000);
TextDrawAlignment(registro_draw[1], 1);
TextDrawColor(registro_draw[1], -5963521);
TextDrawBackgroundColor(registro_draw[1], 255);
TextDrawFont(registro_draw[1], 4);
TextDrawSetProportional(registro_draw[1], 0);
TextDrawSetShadow(registro_draw[1], 0);

registro_draw[2] = TextDrawCreate(252.4000, 253.4665, "Truck"); // пусто
TextDrawLetterSize(registro_draw[2], 0.9552, 3.533;
TextDrawAlignment(registro_draw[2], 1);
TextDrawColor(registro_draw[2], -5963521);
TextDrawSetOutline(registro_draw[2], 1);
TextDrawBackgroundColor(registro_draw[2], 255);
TextDrawFont(registro_draw[2], 0);
TextDrawSetProportional(registro_draw[2], 1);
TextDrawSetShadow(registro_draw[2], 0);

registro_draw[3] = TextDrawCreate(308.4001, 282.5864, "DRIVER"); // пусто
TextDrawLetterSize(registro_draw[3], 0.6304, 2.9589);
TextDrawAlignment(registro_draw[3], 1);
TextDrawColor(registro_draw[3], -1);
TextDrawSetOutline(registro_draw[3], 1);
TextDrawBackgroundColor(registro_draw[3], 255);
TextDrawFont(registro_draw[3], 3);
TextDrawSetProportional(registro_draw[3], 1);
TextDrawSetShadow(registro_draw[3], 0);

registro_draw[4] = TextDrawCreate(301.0000, 216.2267, ""); // пусто
TextDrawTextSize(registro_draw[4], 90.0000, 90.0000);
TextDrawAlignment(registro_draw[4], 1);
TextDrawColor(registro_draw[4], -1);
TextDrawBackgroundColor(registro_draw[4], 4);
TextDrawFont(registro_draw[4], 5);
TextDrawSetProportional(registro_draw[4], 0);
TextDrawSetShadow(registro_draw[4], 0);
TextDrawSetPreviewModel(registro_draw[4], 515);
TextDrawSetPreviewRot(registro_draw[4], 5.0000, 312.0000, 0.0000, 0.8521);
TextDrawSetPreviewVehCol(registro_draw[4], 1, 1);

registro_draw[5] = TextDrawCreate(295.5998, 150.4266, "LOGAR"); // пусто
TextDrawLetterSize(registro_draw[5], 0.5344, 2.1674);
TextDrawAlignment(registro_draw[5], 1);
TextDrawColor(registro_draw[5], -1);
TextDrawSetOutline(registro_draw[5], 1);
TextDrawBackgroundColor(registro_draw[5], 255);
TextDrawFont(registro_draw[5], 3);
TextDrawSetProportional(registro_draw[5], 1);
TextDrawSetShadow(registro_draw[5], 0);

registro_draw[6] = TextDrawCreate(277.2000, 173.5734, "REGISTRAR"); // пусто
TextDrawLetterSize(registro_draw[6], 0.5344, 2.1674);
TextDrawAlignment(registro_draw[6], 1);
TextDrawColor(registro_draw[6], -1);
TextDrawSetOutline(registro_draw[6], 1);
TextDrawBackgroundColor(registro_draw[6], 255);
TextDrawFont(registro_draw[6], 3);
TextDrawSetProportional(registro_draw[6], 1);
TextDrawSetShadow(registro_draw[6], 0);

registro_draw[7] = TextDrawCreate(301.1998, 195.9735, "SAIR"); // пусто
TextDrawLetterSize(registro_draw[7], 0.5344, 2.1674);
TextDrawAlignment(registro_draw[7], 1);
TextDrawColor(registro_draw[7], -1);
TextDrawSetOutline(registro_draw[7], 1);
TextDrawBackgroundColor(registro_draw[7], 255);
TextDrawFont(registro_draw[7], 3);
TextDrawSetProportional(registro_draw[7], 1);
TextDrawSetShadow(registro_draw[7], 0);

registro_draw[8] = TextDrawCreate(276.4000, 219.8670, "NOVIDADES"); // пусто
TextDrawLetterSize(registro_draw[8], 0.5344, 2.1674);
TextDrawAlignment(registro_draw[8], 1);
TextDrawColor(registro_draw[8], -1);
TextDrawSetOutline(registro_draw[8], 1);
TextDrawBackgroundColor(registro_draw[8], 255);
TextDrawFont(registro_draw[8], 3);
TextDrawSetProportional(registro_draw[8], 1);
TextDrawSetShadow(registro_draw[8], 0);

for(new i = 8; i < sizeof(registro_draw); i++) { TextDrawSetSelectable(registro_draw[i], true); }

Quote:

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
new strContaLogin[90], StringRs[290];
format(strContaLogin, sizeof(strContaLogin), "ServerData/Players/%s.ini", Nick(playerid));
if(clickedid == registro_draw[5])
{

if(DOF2_FileExists(strContaLogin))
{
format(StringRs,sizeof(StringRs),"{FFFFFF}Conta: {FFD39B}%s\n{FFFFFF}Registrada.\n{FFFFFF}Casas: {EAB70C}%i\n{FFFFFF}Empresas: {EAB70C}%i\n{FFFFFF}Radares: {EAB70C}%i\n{FFFFFF}Veнculos: {EAB70C}%i\n\n{FFFFFF}Tentativas [{EAB70C}%i/4{FFFFFF}]\n{FFFFFF}Digite sua senha para Logar",Nick(playerid), TotalHouses, TotalBusiness, TotalCameras, LastVehicleID, Tentativas[playerid]);
ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, "Logando...",StringRs, "Logar", "Sair");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo possui uma conta, registre-se");
}
}
if(clickedid == registro_draw[6])
{
if(!DOF2_FileExists(strContaLogin))
{
format(StringRs,sizeof(StringRs),"{FFFFFF}Conta: {FFD39B}%s\n{FFFFFF}Nгo registrada.\n{FFFFFF}Casas: {EAB70C}%i\n{FFFFFF}Empresas: {EAB70C}%i\n{FFFFFF}Radares: {EAB70C}%i\n{FFFFFF}Veнculos: {EAB70C}%i\n\n{FFFFFF}Digite uma senha para se registrar\n{FFD39B}em nosso banco de dados.",Nick(playerid), TotalHouses, TotalBusiness, TotalCameras, LastVehicleID);
ShowPlayerDialog(playerid, DialogRegister, DIALOG_STYLE_INPUT, "Registrando...",StringRs, "Registrar", "Sair");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Seu Nick ja estб registrado em nosso sistema, clique em logar");
}
}
if(clickedid == registro_draw[7])
{

SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo quis Logar e por isso foi kickado!");
Kick(playerid);
}
if(clickedid == registro_draw[8])
{
return cmd_novidades(playerid, "");
}

Quote:

public OnPlayerConnect(playerid)
for(new i = 0; i < sizeof(registro_draw); i++) { TextDrawShowForPlayer(playerid, registro_draw[i]); }

Quote:

public OnDialogResponse
for(new i = 0; i < sizeof(registro_draw); i++) TextDrawHideForPlayer(playerid, registro_draw[i]);

Reply
#2

for(new i = 8; i < sizeof(registro_draw); i++) { TextDrawSetSelectable(registro_draw[i], true); }
i = 8?

i = 0;
Reply
#3

Quote:
Originally Posted by Felipealves
View Post
for(new i = 8; i < sizeof(registro_draw); i++) { TextDrawSetSelectable(registro_draw[i], true); }
i = 8?

i = 0;
26 erros.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)