SA-MP Forums Archive
Multiple Points - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Multiple Points (/showthread.php?tid=509753)



Multiple Points - vassilis - 27.04.2014

solved


Re: Multiple Points - Yasubo - 27.04.2014

Wheres the error lines?

Show us the error lines


Re: Multiple Points - vassilis - 27.04.2014

I have pointed with " // <------- " ...


Respuesta: Multiple Points - OTACON - 27.04.2014

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.


Re: Respuesta: Multiple Points - vassilis - 27.04.2014

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..


Re: Multiple Points - vassilis - 28.04.2014

bump


Re: Multiple Points - Zex Tan - 28.04.2014

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?


Re: Multiple Points - vassilis - 28.04.2014

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


Re: Multiple Points - vassilis - 28.04.2014

still unsolved any help?


Re: Multiple Points - Konstantinos - 28.04.2014

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