Detaljan opis problema:Ovako kod komande Detain napisem /detain 2(2 ili 3) i pise mi ovo: -
%s grabs %s from their cuffs and throws him inside the SAPD cruiser.
Ali mi ga ne ubaci u Auto.
Dio skripte:
CMD:detain(playerid, params[])
{
new playerb, seatid, string;
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Morate se logirati prije koristenja bilo koje komande!");
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer.");
if(sscanf(params, "ui", playerb, seatid)) return SendClientMessage(playerid, COLOR_WHITE, "Koristi: /detain ");
if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Krivi ID!");
if(!IsPlayerNearPlayer(playerid, playerb, 2)) return SendClientMessage(playerid, COLOR_GREY, "You can't detain someone from this disatance.");
if(!IsPlayerCuffed(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Player is not cuffed.");
if(seatid < 2 || seatid > 3) return SendClientMessage(playerid, COLOR_GREY, "You can only detain people in seats 2 and 3.");
PutPlayerInVehicle(playerb, LastCar, seatid);
format(string, sizeof(string), "* %s grabs %s from their cuffs and throws him inside the SAPD cruiser.", RPN(playerid), RPN(playerb));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
