09.12.2017, 12:07
Hello there,
I'm trying to save inputtext into a variable but does not work.
I did try the following: but all ways saved the variable info as 0
What am i doing wrong?
Way 1:
Way 2:
Way 2:
What am i doing wrong?
I'm trying to save inputtext into a variable but does not work.
I did try the following: but all ways saved the variable info as 0
What am i doing wrong?
Way 1:
Код:
ShowPlayerDialog(playerid,TUT4,DIALOG_STYLE_INPUT,"Character creation","{FFFFFF}Enter your characters first name. eg. John or Sara","Next",""); if(dialogid==TUT4) { if(response) { INI_Set(Acc(playerid),"CharacterFirstname",inputtext); } }
Код:
ShowPlayerDialog(playerid,TUT4,DIALOG_STYLE_INPUT,"Character creation","{FFFFFF}Enter your characters first name. eg. John or Sara","Next",""); if(dialogid==TUT4) { if(response) { CharacterFirstname[playerid] = inputtext; } }
Код:
ShowPlayerDialog(playerid,TUT4,DIALOG_STYLE_INPUT,"Character creation","{FFFFFF}Enter your characters first name. eg. John or Sara","Next",""); if(dialogid==TUT4) { if(response) { new value = strval(inputtext); CharacterFirstname[playerid] = value; } }