25.07.2010, 22:28
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:
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:
if(location 1)
{
function
}
if(location 2)
{
function
}
if(location 3)
{
function
}
if(location 4)
{
function
}
................
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}
.......
};