SphereCommunity
Functions and argv - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Functions and argv (/Thread-Functions-and-argv)



Functions and argv - admin phoenix - 08-03-2012 06:24 AM

Hello there,

it´s very difficult to explain so I will write down the code at first

[Function test]
f_test 1,what the hell,2

[FUNCTION f_test]
say <argv[0]>,<argv[1]>,<argv[2]>

it will not give me this one
1, what the hell, 2
it will gives me
1,what,0

finish.

to put the text in a "what the hell" will not work, too.

So how to do it?

gr

Phoenix


RE: Functions and argv - darksun84 - 08-03-2012 06:33 AM

Uhm i have copied and pasted your script and i got the right result

1,what the hell,2

Maybe you have other functions called test/f_test ?


RE: Functions and argv - admin phoenix - 08-03-2012 03:45 PM

no, I forgot to leave the " "
works Smile
stupid phoenix Smile

Thanks