Help Inputtext
#1

Hello again pls help me with this:
pawn Код:
case DIALOG_CASH:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        if(strcmp(inputtext, > 1000)
                        {
i have that and the error is
Код:
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : warning 215: expression has no effect
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : error 001: expected token: ";", but found ")"
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : fatal error 107: too many error messages on one line
the line error is if(strcmp(inputtext, > 1000)
please help me
Reply
#2

Change
pawn Код:
if(strcmp(inputtext, > 1000)
to
pawn Код:
if(strval(inputtext) > 1000)
you should also add a check if it is numeric.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)