IsPlayerInRangeOfPoint problem
#1

* SOLVED *
Reply
#2

Your Proplem is here:
Why you made it 2 times?
pawn Код:
if(IsDetain[ID] == 0)
    {
       SendClientMessage(playerid,COLOR_ERROR,"You can only use this command on detained players.");
       return 1;
    }
pawn Код:
if(HasDetainedPlayer[playerid] == 0)
    {
       SendClientMessage(playerid,COLOR_ERROR,"You have to detain a player first inorder to use this command.");
       return 1;
    }
not 2 times but i think same effect
Reply
#3

The second one detects if the player that is using a command has a detained player

the first one is to detect if the target is detained, there is no problem with them the main problem is the IsPlayerInRangeOfPoint function but i dont know how to fix it
Reply
#4

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,2.5,1537.7087,-1639.0579,13.5469))
is this the arrest point??
Reply
#5

this is the point you drop off the player when you use the command

it suppose to remove the player from the vehicle and send him to jail but it doesn't do anything
Reply
#6

you set the cuffed man if he wanted level 4,5,6 send him to jail and no else
Reply
#7

Look i guess you dont understand what is the problem. The problem is that when i am in the point with my vehicle
and the criminal is a passenger it doesn't jail him or anything

Anyone else have a solution for this?
Reply
#8

BUMP

any help guys?
Reply
#9

How's it going DarkLored? :P Okay so your problem is on the first line, you are getting the wanted level of the police officer such as yourself, but you have to get the wanted level of the suspect so just change playerid to ID and there (Refer to the second line).

pawn Код:
LINE 1: new pwl = GetPlayerWantedLevel(playerid);
pawn Код:
LINE 2: new pwl = GetPlayerWantedLevel(ID);
Reply
#10

Thanks its Solved now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)