help me - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me (
/showthread.php?tid=269865)
help me -
sampfans - 18.07.2011
how to make this limit cash ? example make 200000 limit
pawn Код:
case 1:
{
RefundingNumber[playerid] = 1;
statname = "Cash";
format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
}
Re: help me -
MP2 - 18.07.2011
Under OnDialogResponse, check if the value of inputtext is over 200000.
Re: help me -
alpha500delta - 18.07.2011
Quote:
Originally Posted by MP2
Under OnDialogResponse, check if the value of inputtext is over 200000.
|
That would be:
pawn Код:
if(strval(inputtext) > 200000) return something;
You need strval since inputtext is a string and 200000 is an integer

.