Dialog not showing in 0.3c -
mick88 - 02.01.2011
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
Re: Dialog not showing in 0.3c -
PowerPC603 - 02.01.2011
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.
Respuesta: Re: Dialog not showing in 0.3c -
OwlCity - 02.01.2011
Quote:
Originally Posted by PowerPC603
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.
Re: Dialog not showing in 0.3c -
mick88 - 02.01.2011
Quote:
Originally Posted by PowerPC603
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?