04.03.2016, 21:33
Replace the sscanf with isnull.
If you haven't defined isnull, put this at the top of your script:
Код:
CMD:editveh(playerid, params[])
{
new vehid;
if(isnull(params)) {SendClientMessage(playerid, -1, "/editveh (option) (vehid)"); SendClientMessage(playerid, -1, "{989898}[OPTIONS]: faction | locked"); return 1;}
if(!strcmp(params, "faction", true, 7))
{
if(sscanf(params, "s[32]i",params,vehid)) return SendClientMessage(playerid, -1, "/editvehicle faction (vehid)");
SendClientMessage(playerid, -1, "Vehicle successfully updated.");
}
return 1;
}
Код:
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif

