Bank system
#9

Okay, I understand that now, I am almost done, now I need to know how to search for "all".

I tried:

pawn Код:
new thing;
if(IsNumeric(amount))
    {
        //player types /bank <numbers>
        thing = strval(amount);
    }
    else
    {
            //player types /bank all
             if(amount == "all") return 0;// return 0 just to test if it works
       
       
    }
But that gives me the error:
array must be indexed (variable "amount")
Would it be better to use strfind?
Reply


Messages In This Thread
Bank system - by mrcoolballs - 22.03.2011, 09:58
Re: Bank system - by mrcoolballs - 22.03.2011, 10:15
Re: Bank system - by Stigg - 22.03.2011, 10:49
Re: Bank system - by Mike Garber - 22.03.2011, 10:50
Re: Bank system - by mrcoolballs - 22.03.2011, 11:43
Re: Bank system - by Zh3r0 - 22.03.2011, 12:09
Re: Bank system - by mrcoolballs - 22.03.2011, 12:31
Re: Bank system - by Zh3r0 - 22.03.2011, 12:33
Re: Bank system - by mrcoolballs - 22.03.2011, 12:49
Re: Bank system - by Zh3r0 - 22.03.2011, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)