if (sscanf(params,"uud",Driver,Passenger,Seat))
dcmd_incar(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2) { new Driver,Seat,Passenger; if (sscanf(params,"uud",Driver,Passenger,Seat)) { SendClientMessage(playerid,0xFF0000FF, "Usage: \"/incar <PlayerID Driver> <PlayerID Passenger> <Seat>\""); } { new VehDr,VehPas; VehDr = GetPlayerVehicleID(Driver); VehPas = GetPlayerVehicleID(Passenger); if (VehDr>0) { PutPlayerInVehicle(VehDr,VehPas,Seat); }} } return 1; }
dcmd_incar(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2) { new Driver,Seat,Passenger; if (!sscanf(params,"uud",Driver,Passenger,Seat)) { new VehDr,VehPas; VehDr = GetPlayerVehicleID(Driver); VehPas = GetPlayerVehicleID(Passenger); if (VehDr>0) { PutPlayerInVehicle(VehDr,VehPas,Seat); return 1; } else { SendClientMessage(playerid,0xFF0000FF, "Error: Please specify a drive thats actually in a vehicle!"); return 1; } } SendClientMessage(playerid,0xFF0000FF, "Usage: \"/incar <PlayerID Driver> <PlayerID Passenger> <Seat>\""); return 1; } SendClientMessage(playerid,0xFF0000FF, "Error: You have to be level 2 to use this command!"); return 1; }
dcmd_incar(playerid,params[])
{
if(PlayerInfo[playerid][Level] >= 2)
{
new Driver,Seat,Passenger;
if (!sscanf(params,"uud",Driver,Passenger,Seat))
{
new VehDr = GetPlayerVehicleID(Driver);
if (IsPlayerInAnyVehicle(Driver))
{
PutPlayerInVehicle(Passenger,VehDr,Seat);
}
else
{
SendClientMessage(playerid,0xFF0000FF, "Error: Please specify a driver that's actually in a vehicle!");
}
return 1;
}
SendClientMessage(playerid,0xFF0000FF, "Usage: \"/incar <PlayerID Driver> <PlayerID Passenger> <Seat>\"");
return 1;
}
SendClientMessage(playerid,0xFF0000FF, "Error: You have to be level 2 to use this command!");
return 1;
}
Are you sure you can't use 'iii'? I always use that and it works fine to me.
|
dcmd_incar(playerid,params[])
{
if(PlayerInfo[playerid][Level] >= 2) {
new Driver,Seat,Passenger;
if (sscanf(params,"uud",Driver,Passenger,Seat))
{
SendClientMessage(playerid,0xFF0000FF, "Usage: \"/incar <PlayerID Driver> <PlayerID Passenger> <Seat>\"");
}
else
{
new VehDr;
VehDr = GetPlayerVehicleID(Driver);
if (VehDr>0)
{
PutPlayerInVehicle(Passenger,VehDr,Seat);
}
}
return 1;
}