[SOLVED] /veh command with vehiclename or vehid in dcmd (from strcmp to dcmd)
#9

Remove sscanffrom veh command and add this
Code:
new vehid;
if(IsNumeric(params)) vehid = strval(params);
else vehid = GetVehicleModelIDFromName(params);
if(vehid < 400 || vehid > 611) return SendClientMessage("Invalid vehicle...);
You'll need IsNumeric function for this.
Reply


Messages In This Thread
[SOLVED] /veh command with vehiclename or vehid in dcmd (from strcmp to dcmd) - by KnooL - 29.12.2009, 22:11
Re: from strmp to dcmd - by [HiC]TheKiller - 29.12.2009, 22:13
Re: from strmp to dcmd - by KnooL - 29.12.2009, 22:17
Re: from strmp to dcmd - by KnooL - 30.12.2009, 00:36
Re: from strmp to dcmd - by [HiC]TheKiller - 30.12.2009, 00:46
Re: from strmp to dcmd - by KnooL - 30.12.2009, 13:09
Re: [UNSOLVED] from strmp to dcmd - by KnooL - 30.12.2009, 22:06
Re: [UNSOLVED] /veh command with vehiclename or vehid in dcmd (from strcmp to dc - by KnooL - 31.12.2009, 11:23
Re: [UNSOLVED] /veh command with vehiclename or vehid in dcmd (from strcmp to dc - by M4S7ERMIND - 31.12.2009, 11:50
Re: [UNSOLVED] /veh command with vehiclename or vehid in dcmd (from strcmp to dc - by KnooL - 01.01.2010, 03:59

Forum Jump:


Users browsing this thread: 2 Guest(s)