Multiple Points
#1

solved
Reply
#2

Wheres the error lines?

Show us the error lines
Reply
#3

I have pointed with " // <------- " ...
Reply
#4

pawn Код:
for(new idx=0; idx<sizeof(RobberyPoints); idx++)
{
    if(!IsPlayerInRangeOfPoint(playerid, 2.0, RobberyPoints[idx][0],RobberyPoints[idx][1],RobberyPoints[idx][2]))
    {
        return ErrorMessages(playerid,5);
    }
}
miss you fill one parameter.
Reply
#5

Quote:
Originally Posted by OTACON
Посмотреть сообщение
Код:
for(new idx=0; idx<sizeof(RobberyPoints); idx++){
	if(!IsPlayerInRangeOfPoint(playerid, 2.0, RobberyPoints[idx][0],RobberyPoints[idx][1],RobberyPoints[idx][2])) return ErrorMessages(playerid,5);
}
Omg yea my bad how i forgot that.. LOL THanks OTACON that was silly mistake. Thanks +rep
EDIT: It says i am not near the robbery point now..
Reply
#6

bump
Reply
#7

pawn Код:
new Float:RobberyPoints[3][4] =
Isn't this suppose to be,
pawn Код:
new Float:RobberyPoints[3][3] =  // Setting array number to 3
Unless you want to add some angles in the coordinates. You only add X, Y and Z?
Reply
#8

Quote:
Originally Posted by Zex Tan
Посмотреть сообщение
pawn Код:
new Float:RobberyPoints[3][4] =
Isn't this suppose to be,
pawn Код:
new Float:RobberyPoints[3][3] =  // Setting array number to 3
Unless you want to add some angles in the coordinates. You only add X, Y and Z?
I changed it to [3][3] but still doesnt work
Reply
#9

still unsolved any help?
Reply
#10

pawn Код:
new point = -1;
for (new i; i != sizeof (RobberyPoints); ++i)
{
    if (IsPlayerInRangeOfPoint(playerid, 2.0, RobberyPoints[i][0], RobberyPoints[i][3], RobberyPoints[i][2]))
    {
        point = i;
        break;
    }
}
if (point == -1) return // error message: not in range of any point
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)