Return multidimensional array - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Return multidimensional array (
/showthread.php?tid=122449)
Return multidimensional array -
Blekk - 22.01.2010
Hello,
I was wondering if it is possible to return a multidimensional array from a function?
I assume it is and I'm just declaring the variable to receive the function wrong.
Example:
Код:
<receive variable> = <function whose return is a multidimensional array>
I keep getting the error:
Quote:
error 017: undefined symbol "<receive variable>"
|
pointing at the line where I have the above code.
Any ideas?
Thanks for your time,
Blekk
Re: Return multidimensional array -
iLinx - 22.01.2010
try that, and you cant use < and > in your identifiers for variables iirc
Re: Return multidimensional array -
Blekk - 22.01.2010
Ah, I've sorted it out, I hadn't put "new" infront of my receive multidimensional array and I had also spelt the function name wrong...argh.
And thanks iLinx but yeah I know you cant use angle brackets, I was using them to show where the variable and function were in my declaration.
Thanks for the reply, it made me see my stupid mistakes, everything works now.
Thanks,
Blekk