22.03.2011, 12:49
Okay, I understand that now, I am almost done, now I need to know how to search for "all".
I tried:
But that gives me the error:
array must be indexed (variable "amount")
Would it be better to use strfind?
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
}
array must be indexed (variable "amount")
Would it be better to use strfind?