21.01.2011, 17:46
hello guys when i do this command i do like this first i do
Код:
forward VehicleSpawn(playerid,model); forward VehicleDelete(vehicleid);
Код:
and then: public VehicleSpawn(playerid,model) { if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, COLOR_RED, "You already have a car!"); } else { new Float:x, Float:y, Float:z, Float:angle; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, angle); if(!IsPlayerInAnyVehicle(playerid)) { VehicleDelete(Player[playerid][Veh]); return 1; } new vehicleid = CreateVehicle(model,x,y,z,angle,-1,-1,-1); PutPlayerInVehicle(playerid, vehicleid, 0); SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid)); ChangeVehicleColor(vehicleid,36,36); Player[playerid][Veh] = vehicleid; } return 1; }
Код:
the error i got this one: function "VehicleDelete" is not implemented