INVALID_VEHICLE_ID = Unknown Command?
#1

I've recently been working with INVALID_VEHICLE_ID and have discovered it will make your command return unknown.


pawn Код:
CMD:vid(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, -1, "Usage: /vid [vehicle id]");
if(strval(params) == INVALID_VEHICLE_ID) return SendClientMessage(playerid, -1, "Invalid vehicle.");
SendClientMessage(playerid, -1, "Vehicle valid.");
return 1;
}

That is just an example. ^
Reply


Messages In This Thread
INVALID_VEHICLE_ID = Unknown Command? - by Karkand - 19.09.2012, 00:18
Re: INVALID_VEHICLE_ID = Unknown Command? - by SuperViper - 19.09.2012, 01:05

Forum Jump:


Users browsing this thread: 1 Guest(s)