Transfer string arguments in set_task
I wanna to execute function restore_targetname( name[1][] ) via set_task
so tryed to do it like this: PHP Code:
Note: I can't use global vars bzc task is in loop and could be executed many times in 0.1second so the var would be rewritten :( Any Suggestions? :) |
Re: Transfer string arguments in set_task
PHP Code:
Now gonna try the first one ------------------------------ When using the 1st got server shutdown and error memory can't be "read" Any suggestions? |
Re: Transfer string arguments in set_task
try : set_task( 0.1, "restore_targetname", _, szTargetName, 32 );
|
Re: Transfer string arguments in set_task
Quote:
Server crash Anyone help plz :crab: |
Re: Transfer string arguments in set_task
Show your whole code. Make sure it crashes because of what I write and nothing else also.
|
Re: Transfer string arguments in set_task
Your function is:
PHP Code:
PHP Code:
|
Re: Transfer string arguments in set_task
snow read his post again.
PHP Code:
PHP Code:
|
Re: Transfer string arguments in set_task
I doubt you can pass a two-dimensional array through. Index the first dimension (targetname[0])
|
Re: Transfer string arguments in set_task
Quote:
|
Re: Transfer string arguments in set_task
Quote:
we do it like this PHP Code:
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 02:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.