12.03.2019, 16:21
Your sscanf is looking for mid, vcolor1, vcolor2 in "params" but there is also "create" word inside, so it is returning 0. You have to use two variables.
I've used "ddd" instead of "iii" here, but don't really know what's the difference between these two.
Код:
new parameter[20], rest[20]; if( sscanf(params, "s[20]S()[20]", parameter, rest) ) return UsageTag(playerid, "/aveh [CREATE/REMOVE]");
Код:
if( !strcmp(parameter, "create") ) { if(sscanf(rest, "ddd", mid, vcolor1, vcolor2)) return UsageTag(playerid, "/aveh create [MODEL] [COLOR1] [COLOR2]");