23.02.2010, 18:17
ok in the base.pwn file that comes with the server there is a /pm ID (text) command. but if i add it into my gamemode i get 2 errors. any help
new gMessage[256];
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;
}