Jump to content

Is it possible to pass an entire array to a function?


irswat

Recommended Posts

example:

function1()

FormFound=ExEquipItem(Formulator[], ItemNameLength)

endFunction

form function ExEquipItem(string[] ItemToEquip=new string[10], int LengthOfCMDItem)

endFunction

how do I pass an array, and how to I receive an array in the function being called? The above method is not working and the CK wiki doesn't seem to have any information.

 

 

EDIT: Figured it out


function1()

  ExEquipItem(Formulator, ItemNameLength)

endFunction

form function ExEquipItem(string[] ItemToEquip, int LengthOfCMDItem)

endFunction
Edited by irswat
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...