24.04.2016, 20:57
Firstly, the way you create commands through strcmp is inefficient compared to some of the command processors found on the forum, I'd recommend using izcmd since it's what most scripters use. Also, using strlen to check if the command parameters are empty is inefficient, using sscanf is more simple.
As for the problem with the command, the 0 in your PutPlayerInVehicle function means it's trying to place the dragged id into the driver's seat, which is something I imagine you don't want.
That is a guide of what the seat ids are, but everything else seems to be in place.
As for the problem with the command, the 0 in your PutPlayerInVehicle function means it's trying to place the dragged id into the driver's seat, which is something I imagine you don't want.
Код:
0 - Driver 1 - Front passenger 2 - Back-left passenger 3 - Back-right passenger 4+ - Passenger seats (coach etc.)