06.01.2014, 15:40
Okay, so I have been working on this command for a while now, fixing the bugs and everything. but now
there is one thing I have looked at and just do not know what its happening
The problem is, when are in the vehicle it destroys the vehicle, but it sends the client the
message, "Sorry this command has not been recognized" and it doesn't continue the command by not
Sending the client "You have destroyed your %s"
Please help if you can, thank you.
there is one thing I have looked at and just do not know what its happening
Код:
CMD:destroyveh(playerid, vehicleid, params[]) { DestroyVehCMD[playerid] = 1; new VehID = GetPlayerVehicleID(playerid); if(IsPlayerInVehicle(playerid, VehID) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { DestroyVehicle(VehID); format(string2, sizeof(string2), "You have destroyed your %s", VehicleName(vehicleid)); SCM(playerid, RED, string2); } if(IsPlayerInVehicle(playerid, VehID) && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { SCM(playerid, RED, "You need to be in the driver's seat to destroy this vehicle."); } if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { SCM(playerid, RED, "You must be driving a vehicle to destroy it"); } return 1; }
message, "Sorry this command has not been recognized" and it doesn't continue the command by not
Sending the client "You have destroyed your %s"
Please help if you can, thank you.