Inputtext, textdraws, dialog, real problem.
#1

Hi.
I actually very need your help because i've made a script using textdraws where the player have to click on "Age" to edit the textdraw like :

"Age : 21"

21 is the value chosen by the player with the dialog but, the textdraw is not updated when the player chooses his age. There is my code:

THE DIALOG
Quote:

if(dialogid == DIALOG_AGE)
{
format(InscriAge, sizeof(InscriAge), "%d", inputtext);
format(MessageInscri, sizeof(MessageInscri), "Age: %d", InscriAge);
PlayerTextDrawSetString(playerid, Creationperso[playerid][11], MessageInscri);

PlayerTextDrawShow(playerid, Creationperso[playerid][11]);
}

OnPlayerClickPlayerTextDraw
Quote:

if(playertextid == Creationperso[playerid][11])
{
PlayerTextDrawHide(playerid, Creationperso[playerid][11]);
ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "Age perso", "Age du perso", "Choisir", "");
}

Reply
#2

PHP Code:

if(dialogid == DIALOG_AGE)
{
new 
age strval(inputtext);
format(MessageInscrisizeof(MessageInscri), "Age: %d"age);
PlayerTextDrawSetString(playeridCreationperso[playerid][11], MessageInscri);

PlayerTextDrawShow(playeridCreationperso[playerid][11]);

Reply
#3

thanks you man
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)