SA-MP Forums Archive
DIALOG STYLE INPUT -- Need some help with this! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DIALOG STYLE INPUT -- Need some help with this! (/showthread.php?tid=336120)



DIALOG STYLE INPUT -- Need some help with this! - Dan. - 21.04.2012

When a player types in 10, he loses 10 scorepoints and gets 5000 bucks. But how to change this thing, that he only could type in numbers? When he types in asdasd, it may get buggy..


Re: DIALOG STYLE INPUT -- Need some help with this! - Laure - 21.04.2012

Not Sure but i think u need to update your PluGin.


Re: DIALOG STYLE INPUT -- Need some help with this! - [MG]Dimi - 21.04.2012

under on dialog response
pawn Код:
if(!isNumeric(inputtext)) return SendClientMessage(playerid,0xFF0000FF,"You can type only numbers!");
isNumeric is included in dudb or dutils, not sure is it even in any of these. But you can make your own if you want.