Limit a player to a certain amount of characters when using a command[+REP]
#5

Quote:
Originally Posted by Virtual1ty
Посмотреть сообщение
Код:
if (strlen(params) > 10)
{
    // return your string
    return 1;
}
Quote:
Originally Posted by Burridge
Посмотреть сообщение
Код:
if(sscanf(params, "s[15]S[15]S[128]", tmp, tmp2, tmp3))
Also z is depreciated so just use a capital S for optional strings.

EDIT: Whoops I think I may of read the post wrong also, but my point of using S for optional still stands at least
both don't work >:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)