[HELP] A lot of values
#1

Hey there peeps, o have got a little problem, i got a 100 locations (yes exactly a 100) but i dont want to make a fuction like:
pawn Code:
if(location 1)
    {
        function
    }
if(location 2)
    {
        function
    }
if(location 3)
    {
        function
    }
if(location 4)
    {
        function
    }
................
because that will get way TOO long, so heres the question:
How do i shorten this? so i can make a lot of functions with these locations, and i dont need to make something like that ^ in every function??

Something like a 'new' or something i have seen it before like:
pawn Code:
new
    locations[100????][????????????????] =
    {
     {location1}
{location2}
{location3}
{location4}
.......
    };
Reply


Messages In This Thread
[HELP] A lot of values - by WThieves - 25.07.2010, 22:28
Re: [HELP] A lot of values - by iggy1 - 25.07.2010, 22:31
Re: [HELP] A lot of values - by PotH3Ad - 26.07.2010, 01:01
Re: [HELP] A lot of values - by WThieves - 26.07.2010, 12:36
Re: [HELP] A lot of values - by Shadow™ - 26.07.2010, 12:42
Re: [HELP] A lot of values - by WThieves - 26.07.2010, 16:25
Re: [HELP] A lot of values - by WThieves - 27.07.2010, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)