04.03.2016, 21:14
So I was creating a multi-command using sscanf and zcmd, but it kept getting stuck after the first stage of the command. (After /editveh faction {whateverid} it returns nothing in the IG chat)
This is the code:
Any help/suggestions are much appriciated
This is the code:
Код:
CMD:editveh(playerid, params[])
{
new vehid;
if(sscanf(params, "s[32]", params)) {SendClientMessage(playerid, -1, "/editveh (option) (vehid)"); SendClientMessage(playerid, -1, "{989898}[OPTIONS]: faction | locked"); return 1;}
if(!strcmp(params, "faction", true, 8))
{
if(sscanf(params, "s[32]i",params,vehid)) return SendClientMessage(playerid, -1, "/editvehicle faction (vehid)");
SendClientMessage(playerid, -1, "Vehicle successfully updated.");
}
return 1;
}

