ShowPlayerDialog
#1

How to use inputtext for number?
Reply
#2

Just do:

pawn Код:
new amount = strval(inputtext);
In your dialog code.
Reply
#3

If you mean checking if the entered text is numeric you could do this:
pawn Код:
// Put this in your dialog response
if (strval(inputtext))
{
    // The text is numeric, proceed with the code..
}
else
{
    // The text is not numeric, reshow the dialog?...
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)