Fixing Anti Advertisment
#4

i created a stock called "IsNum" and when i cycle through each character in the string I use that and a check with .'s
this should help you get on the right path
pawn Код:
stock isnum(text[])
{
    new str[2];
    format(str,sizeof(str),"%s",text);
    if(!strcmp(str,"0",false)) return 1;
    if(strval(str[0]) == strval(str[1])) return 0;
    if(strval(text) >= 1) return 1;
    return 0;
}
Reply


Messages In This Thread
Fixing Anti Advertisment - by xxjackoxx - 18.04.2011, 07:47
Re: Fixing Anti Advertisment - by xxjackoxx - 19.04.2011, 04:42
Re: Fixing Anti Advertisment - by xxjackoxx - 19.04.2011, 23:32
Re: Fixing Anti Advertisment - by cessil - 20.04.2011, 00:24
Re: Fixing Anti Advertisment - by xxjackoxx - 21.04.2011, 09:19

Forum Jump:


Users browsing this thread: 1 Guest(s)