14.12.2011, 16:55
I'm trying to make something like:
I can get as far as the matching part, can't get how to check and store the 3rd value when a "Value" match is found..
pawn Код:
/Test <Value>
(Values: test1, test2)
if(strmatch(params, "test1"))
{
if(isnull(params)) message(color, "/Test test1 <1 - 5>");
printf("%d", strval(params));
}
else if(strmatch(params, "test2"))
{
if(isnull(params)) message(color, "/Test test2 <20 - 60>");
printf("%d", strval(params));
}
return 1;