24.04.2013, 18:27
Olб pessoa, hoje eu estava criando um sistema de login e recuperar senha com duas textdraw selecionбveis, ai que ta o problema, as textdraws nгo ficam selecionбveis, jб fiz tudo que tem que fazer para uma textdraw ficar selecionбvel, mas elas nгo ficam. Vou deixar o code abaixo se alguйm poder ajudar fico grato.
pawn Код:
public OnGameModeInit(){
Textdraw[0] = TextDrawCreate(322.000000, 203.000000, "Logar");
TextDrawAlignment(Textdraw[0], 2);
TextDrawBackgroundColor(Textdraw[0], 255);
TextDrawFont(Textdraw[0], 1);
TextDrawLetterSize(Textdraw[0], 0.799999, 2.500000);
TextDrawColor(Textdraw[0], -16776961);
TextDrawSetOutline(Textdraw[0], 1);
TextDrawSetProportional(Textdraw[0], 1);
TextDrawUseBox(Textdraw[0], 1);
TextDrawBoxColor(Textdraw[0], -12255096);
TextDrawTextSize(Textdraw[0], -35.000000, 73.000000);
TextDrawSetSelectable(Textdraw[0], 1);
Textdraw[1] = TextDrawCreate(329.000000, 233.000000, "Recuperar Senha");
TextDrawAlignment(Textdraw[1], 2);
TextDrawBackgroundColor(Textdraw[1], 255);
TextDrawFont(Textdraw[1], 1);
TextDrawLetterSize(Textdraw[1], 0.799999, 2.500000);
TextDrawColor(Textdraw[1], -16776961);
TextDrawSetOutline(Textdraw[1], 1);
TextDrawSetProportional(Textdraw[1], 1);
TextDrawUseBox(Textdraw[1], 1);
TextDrawBoxColor(Textdraw[1], -12255096);
TextDrawTextSize(Textdraw[1], -73.000000, 141.000000);
TextDrawSetSelectable(Textdraw[1], 1);
return 1;
}
public OnPlayerRequestClass(playerid, classid){
printf("Chamo a CallBack OnPlayerRequestClass");
MenuL(playerid);
return 1;
}
CallBack:MenuL(playerid){
new str[64];
format(str, sizeof(str),PastaC,Nome(playerid));
TogglePlayerSpectating(playerid, 1);
if(!DOF2_FileExists(str))
{
Logar(playerid);
}
SelectTextDraw(playerid, 0x8B0000);
TextDrawShowForPlayer(playerid, Textdraw[0]);
TextDrawShowForPlayer(playerid, Textdraw[1]);
return true;
}