base.pwn question...
#5

Add:
pawn Код:
new gMessage[256];
and:
pawn Код:
stock strrest(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
    new offset = index;
    new result[128];
    while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
For end, add "return 0;" in end of your "OnPlayerCommandText"!
Reply


Messages In This Thread
base.pwn question... - by RoneyRemington - 23.02.2010, 18:17
Re: base.pwn question... - by [cA]Unforseen - 23.02.2010, 18:18
Re: base.pwn question... - by LuxurioN™ - 23.02.2010, 18:44
Re: base.pwn question... - by RoneyRemington - 23.02.2010, 20:16
Re: base.pwn question... - by LuxurioN™ - 23.02.2010, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)