How can i do this?
#4

Quote:
Originally Posted by Joe Torran C
Is there any other way?
Yes, something like this is five times faster than sscanf:
pawn Код:
if(isnull(params)) return Message("Usage: /test [option]");
new tmp[32], idx, len = strlen(params);
while(params[idx] > ' ' && idx < len) idx++;
format(tmp, sizeof(tmp), "%.*s", idx, params);
if(!strcmp(tmp, "test", true))
{
  ...
}
Reply


Messages In This Thread
How can i do this? - by Torran - 01.05.2010, 14:32
Re: How can i do this? - by M4S7ERMIND - 01.05.2010, 14:45
Re: How can i do this? - by Torran - 01.05.2010, 14:48
Re: How can i do this? - by M4S7ERMIND - 01.05.2010, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)