Dialog not showing in 0.3c
#1

Appearently ShowPlayerDialog() isn't working when parameter info[] is null. I tried to fill it with "\1\0" but then I have a square appear in there.

This is the code:

Code:
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Test dialog 1", "", "OK", "Back");
Problem: Dialog box not appearing. When parameter info[] is changed from "" to anything else, ,problem disappears.

This problem didn't exist in SA-MP 0.3b
Reply
#2

Why would you show an empty dialog in the first place?

It's only logical that, if there is nothing to show, the dialog isn't shown either.

They just might have done this on purpose.
Reply
#3

Quote:
Originally Posted by PowerPC603
View Post
Why would you show an empty dialog in the first place?

It's only logical that, if there is nothing to show, the dialog isn't shown either.

They just might have done this on purpose.
Example:

pawn Code:
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Select gender", "", "Male", "Female");
(()): It happened me.
Reply
#4

Quote:
Originally Posted by PowerPC603
View Post
Why would you show an empty dialog in the first place?

It's only logical that, if there is nothing to show, the dialog isn't shown either.

They just might have done this on purpose.
It's very logical if you look at the type of dialog: it's an input box. Now, let's assume that I want player to enter some text property like rank name and you want to show it's previous value in that parameter. Now if the previous parameter is empty (value needs to be set by player for the first time), that's when you need to put an empty string there.
I know there is workaround to avoid this bug like changing string to "<empty>" when you need to show player that it's empty, but it's not the point of having "Bug reports" board, is it?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)