Der cmd funktioniert. aber wenn ich aus dem auto raus will crash ich immer
dcmd_getincar(playerid,params[])
{
new giveplayerid, seatid;
if(sscanf(params,"dd",giveplayerid,seatid))
{
SendClientMessage(playerid,ERROR,"Usage: /getincar (playerid) (seatid)");
return 1;
}
if(!IsPlayerInAnyVehicle(giveplayerid))
{
SendClientMessage(playerid,ERROR,"That player is not in a vehicle.");
return 1;
}
PutPlayerInVehicle(playerid,GetPlayerVehicleID(giveplayerid),seatid);
return 1;
}