The quest problem
#3

The way you are using SetPlayerMapIcon is invalid, because you would set all map icon in each iteration.

First solution:
- You can put all X, Y and Z data in one multidimensional array and use it in only one line of for loop. For example:

PHP код:
//Declaring the array
new Float:Coords[5][3] = {
{
1.02.03.0},
{
1.02.03.0},
{
1.02.03.0},
{
1.02.03.0},
{
1.02.03.0}
};
//Iteration
for(new 05i++)
    
quest_MapIcon[playerid][i] = SetPlayerMapIcon(playeridiCoords[i][0], Coords[i][1], Coords[i][2], 56, -1MAPICON_GLOBAL); 
Second solution:
- Forget the loop and create all lines with SetPlayerMapIcon and without i variable
Reply


Messages In This Thread
The quest problem - by LaurVM - 31.08.2018, 15:07
Re: The quest problem - by LaurVM - 01.09.2018, 08:43
Re: The quest problem - by iHollyZinhO - 02.09.2018, 00:57
Re: The quest problem - by LaurVM - 02.09.2018, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)