12.09.2014, 03:57
I dont think this code works in any way, i've tried countless solutions and results are the same. So i'd suggest using a different method for this command. you could do something like this
pawn Код:
CMD:test1(playerid,params[])
{
new item[10];
if(sscanf(params,"s[10]", item)) return SendClientMessage(playerid, -1, "USE: /test1");
if(!strcmp(params, "drugs"))
{
SendClientMessage(playerid,-1,"drugs OK");
}
return 1;
}
pawn Код:
CMD:mats(playerid,params[])
{
new slot;
if(sscanf(params,"i", slot)) return SendClientMessage(playerid, -1, "USE: /mats [1-2]");
if(!strcmp(params, "1"))
{
SendClientMessage(playerid,-1,"mats 1 OK");
}
if(!strcmp(params, "2"))
{
SendClientMessage(playerid,-1,"mats 2 OK");
}
return 1;
}