08.03.2015, 10:04
zcmd and sscanf, i dont see any implementation of those includes.
Using array for this purpose is completly efficient. I dont know why would anyone call this efficient.
You havent made any checks either if the vehicle is valid!
In your example, the syntax says, /car [veh ID]. Then why would you limit the usage for vehicle id b/w 400 - 611! It must be modelid. As well for the function.
OR you must use something like this:
Using array for this purpose is completly efficient. I dont know why would anyone call this efficient.
You havent made any checks either if the vehicle is valid!
In your example, the syntax says, /car [veh ID]. Then why would you limit the usage for vehicle id b/w 400 - 611! It must be modelid. As well for the function.
OR you must use something like this:
pawn Code:
stock GetVehicleName(vehicleid)
{
new name[18];
switch(GetVehicleModel(vehicleid))
{
....

