18.12.2014, 23:50
Hello!
As the title says, I have a problem with strpack.
The thing is, I'm making an event system using dialogs.
...
So, I made a dialog to set the name for an event (inputtext), and it works like this:
And this is the code that shows the event name in a dialog:
PROBLEM:
Whenever I show the dialog "DIALOG_EVENT_NAME", the string doesn't show me the correct (name that was actually wrote), it shows me every fourth letter that is in the name.
For an example:
123(4)567(8) > 48
hop(e)goo(d) > ed
hid(e) > e
etc...
I don't see a problem...
As the title says, I have a problem with strpack.
The thing is, I'm making an event system using dialogs.
...
So, I made a dialog to set the name for an event (inputtext), and it works like this:
pawn Код:
strpack(eName, inputtext);
pawn Код:
format(A, sizeof(A), "Event name: %s", eName);
ShowPlayerDialog(playerid, DIALOG_EVENT_NAME, DIALOG_STYLE_MSGBOX, "Event name", A, "Cancel", "");
Whenever I show the dialog "DIALOG_EVENT_NAME", the string doesn't show me the correct (name that was actually wrote), it shows me every fourth letter that is in the name.
For an example:
123(4)567(8) > 48
hop(e)goo(d) > ed
hid(e) > e
etc...
I don't see a problem...