[Include] GetVehicleName - Simple, Easy & Efficient function.
#6

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:
pawn Code:
stock GetVehicleName(vehicleid)
{
       new name[18];
       switch(GetVehicleModel(vehicleid))
       {
....
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)