Help /makeadmin and /admins
#5

Delete the string from line 100 and replace IsNumeric and strtok to
pawn Код:
strtok(const Msg[], &index)
{
    new length = strlen(Msg);
    while ((index < length) && (Msg[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (Msg[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = Msg[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
IsNumeric(const Msg[])
{
    for (new i = 0, j = strlen(Msg); i < j; i++)
    {
        if (Msg[i] > '9' || Msg[i] < '0') return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Help /makeadmin and /admins - by DannySnoopy - 03.02.2012, 12:28
Re: Help /makeadmin and /admins - by Konstantinos - 03.02.2012, 12:36
Re: Help /makeadmin and /admins - by DannySnoopy - 03.02.2012, 12:39
Re: Help /makeadmin and /admins - by DannySnoopy - 03.02.2012, 12:46
Re: Help /makeadmin and /admins - by Konstantinos - 03.02.2012, 12:50
Re : Help /makeadmin and /admins - by ricardo178 - 03.02.2012, 12:56
Re: Help /makeadmin and /admins - by DannySnoopy - 03.02.2012, 12:58
Re: Help /makeadmin and /admins - by Konstantinos - 03.02.2012, 13:02
Re: Help /makeadmin and /admins - by DannySnoopy - 03.02.2012, 13:03

Forum Jump:


Users browsing this thread: 3 Guest(s)