19.09.2012, 00:18
I've recently been working with INVALID_VEHICLE_ID and have discovered it will make your command return unknown.
That is just an example. ^
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. ^