1) Verry sloppy for loop
2) Why did you do this
PHP Code:
new origin[33][3];
if you only use it to pass a single origin as a function call ?
3) The root of the problem is in here
PHP Code:
public FS_Should_Burn_Victim ( origin[], burnvec1[], burnvec2[], radius, i, id, ff )
{
if ( ( is_user_alive ( i ) == 1 ) && ( i != id ) )
{
if ( ( get_distance ( origin[i], burnvec1 ) < radius ) || ( get_distance ( origin[i], burnvec2 ) < radius ) )
{
TASK_Burn_Victim ( i, id, ff );
}
}
}
Inside that function the "origin" variable is that from the argument line, NOT that one declared in your other function (where it was declared as private btw). You cannot do origin[i] here. Taking this a step forward: get_distance() expects 2 vectors like vec1[3] and vec2[3]; origin[i] is interpreted as origin[i][0], origin[i][1] and origin[i][2] (2D arrays). At this poin it conflicts with the local function argument origin[] (1D array). Review point 1 and 2 and your problem will get solved by itself.