passing variables through to functions

Forum Archive - from http://theuniversal.net
Locked
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

passing variables through to functions

Post by morbydvisns »

Software:Universal Client
Version Number:
________________________________________________________________________
Location

________________________________________________________________________
Description:

Code: Select all

 $text = "mickeymouselang"
	   ResearchBlock($t_ResearchItems[$itemName],$t_ResearchItems[$maxLvl],$t_ResearchItems[$startlvlRes],$text)

function ResearchBlock($name,$startResAmnt,$maxLvl,$thumbname)
{

*say $thumbname thumbname

________________________________________________________________________
Steps to Replicate:
This does not pass the text through to the function from the var containing a text. It works fine if i put the "mickeymouselang" in the place of $text on the function call, but not if i set a variable to "anytext" and use the variable in function call arguments.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

Fixed server 0.68.3
Locked