28.08.2011, 11:40
Hello.
I am having a very annoying issue, that makes few features of my script just impossible. So, without further ado, I'll just show you what I mean.
I've got some dynamic things in my script, and when player uses "/things", it displays a ShowPlayerDialog list like this:
At OnDialogResponse I use this:
It works fine for the first item, because the listitem text is pretty short. After choosing it, you can see the small dialog window with text:
But, when player chooses the second item ("Very big thing..."), window text looks like this:
So, when the listitem text is longer than some amount of characters, it is not stored in inputtext.
Is there any way to fix this?
Thanks for reading the topic. Help, please.
I am having a very annoying issue, that makes few features of my script just impossible. So, without further ado, I'll just show you what I mean.
I've got some dynamic things in my script, and when player uses "/things", it displays a ShowPlayerDialog list like this:
Код:
UID Thing desc. 22 Small thingie 232 Very big thing, this is kinda long, but not too much and it should work goddamit!
Код:
switch( dialogid ) { case DIALOGID_LIST: { if( !response ) return 1; new thingUID = strval( inputtext ), thingInfo[ 200 ] ; // When player clicks on any listitem, the chosen item text is being stored into inputtext[ ]. // As you may see, I am getting a UID variable from this text. format( thingInfo, 200, "Thing UID: %d\nThing description: %s", thingUID, Thing[ thingUID ][ thingDesc ] ); ShowPlayerDialog( playerid, DIALOGID_INFO, DIALOG_STYLE_MSGBOX, "Thingies", thingInfo, "Back", "" ); } }
Код:
Thing UID: 22 Thing description: Small thingie
Код:
Thing UID: 0 Thing description:
Is there any way to fix this?
Thanks for reading the topic. Help, please.