View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002181||Multi Theft Auto : San Andreas||Scripting||public||2007-06-12 20:25||2007-06-14 12:17|
|Target Version||Fixed in Version||mtasadm_v1.0-dp1|
|Summary||0002181: clientside call() returns lots of junk alongside real value|
Clientside call seems to return a lot of junk when used clientside. It does return the desired variable, but in random positions. The "junk" that fill up the rest are values that were originally entered in the call function.
call(getResourceFromName("dropdownmenu"),"createDropDownMenu",80,300,200,20, 200,500, 0, false)
Here the desired value is the 5th value, and for some reason again at the 10th value. The rest all resemble args entered in the original function
createDropDownMenu ( 0.05, 0.05, 0.95, 0.04, 0.95, 0.45, 0, true, theBrowser )
EDIT: On second thought, those userdata values may not be the desired return value, and could be other passed args. It looks like these return values are just a rearranged version of the args in call()
|Tags||No tags attached.|
Can you provide an example of it working against a server call, and not working against a client call. It is almost identical code, so it is strange that it is working in one, but not the other.
Bump for justice. Also:
Executing command:return call(getResourceFromName("calltest"),"testReturn")
Executing client command:return call(getResourceFromName("calltest"),"testReturn")
Btw, in both cases it should return this:
Serverside call isn't returning nil between the string and the element either.
should return the relevant values