How to properly use arrays?
#2

You can use something like this to create the 3dtextlabels.

pawn Code:
#define MAX_FISHING_AREAS 3
new Float:fishingspots[MAX_FISHING_AREAS][3] =
{
    {-1874.6598,-1670.0956,0.9824}, //Fishing Spot 1
    {2323.2, 23232.4, 0.2323}, //Fishing Spot 2
    {4443.0, 323.0, 25.1} //Fishing Spot 3
};

//creating the TextLabels.
    for(new i=0; i<MAX_FISHING_AREAS; i++) { Create3DTextLabel("Fishing area.\n/fish ", 0x008080FF,fishingspots[i][0], fishingspots[i][1], fishingspots[i][2], 20.0, 0, 0); }
Reply


Messages In This Thread
How to properly use arrays? - by rangerxxll - 30.03.2014, 02:07
Re: How to properly use arrays? - by EiresJason - 30.03.2014, 03:00
Re: How to properly use arrays? - by rangerxxll - 30.03.2014, 03:04
Re: How to properly use arrays? - by EiresJason - 30.03.2014, 03:30
Re: How to properly use arrays? - by newbie scripter - 30.03.2014, 03:38
Re: How to properly use arrays? - by rangerxxll - 30.03.2014, 03:38
Re: How to properly use arrays? - by RoboN1X - 30.03.2014, 03:43
Re: How to properly use arrays? - by EiresJason - 30.03.2014, 03:44
Re: How to properly use arrays? - by rangerxxll - 30.03.2014, 03:50
Re: How to properly use arrays? - by RoboN1X - 30.03.2014, 03:52

Forum Jump:


Users browsing this thread: 2 Guest(s)