Var
MyArray: Array[0..50] of Integer;
Procedure HelpMe(Source: Array of Integer); //You cant determine the length of the array inside the parameters. :)
Begin
WriteLn('Yo dawg, this s.. is working!');
WriteLn('Length of your array: '+IntToStr(GetArrayLength(Source)));
end;
Function OnPlayerCommand(ID: Byte; Text: String): Boolean;
Begin
if LowerCase(Text) = '/hey' Then HelpMe(MyArray);
end;
//Doing /hey would output this:
//"Yo dawg, this s.. is working!
//Length of your array: 51"
//~~~~~~~~
//I don't know if that is what you seek, I just fixed the problems with it. :)