help me
#1

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");
                }
Reply
#2

Under OnDialogResponse, check if the value of inputtext is over 200000.
Reply
#3

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 .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)