how to pass someone's id to another function?
if I had this function:
Code:
could I use set_task to pass this id to another function and if so how? |
Re: how to pass someone's id to another function?
Code:
|
Re: how to pass someone's id to another function?
ahh so simple, but I want a delay to occur before that second function is executed, specifically five seconds, and the only way I know to do this is set_task is there another, and if set_task is the only way how can I pass id through set_task?
|
Re: how to pass someone's id to another function?
set_task()
|
Re: how to pass someone's id to another function?
how do I pass an id through set task is my question
|
Re: how to pass someone's id to another function?
i think..
1st of all the set_task : set_task(Float:time,const function[],id = 0,parameter[]="",len = 0,flags[]="", repeat = 0) ok. public funtion(id) { function2(id); set_task here function2( id ) { // id got passed } i dont have my amxx studio atm so im not sure nort tested |
Re: how to pass someone's id to another function?
that would make the func execute before set_task is even looked at that makes no sense
|
Re: how to pass someone's id to another function?
PHP Code:
|
Re: how to pass someone's id to another function?
awesome you rock wonsae ty ty -karma fo joo
|
Re: how to pass someone's id to another function?
If you want, you can pass the player id as the task id. If no extra parameters are set, then the task id will be passed to the function. Example:
Code:
But if you plan to have multiple tasks and also use the other task functions (change_task, task_exists, remove_task), then you should use unique task ids and instead pass the player id the way that wonsae showed you. |
| All times are GMT -4. The time now is 04:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.