View Single Post
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-15-2022 , 07:37   Re: set_task parameter confusion
Reply With Quote #6

You can also use enumerations helps with the readibilty...

PHP Code:
enum FUNC_PARAMS
{
    
FP_ID,
    
FP_TIME
}

new 
aParams[FUNC_PARAMS]
set_task(1.0"task_function"0aParamssizeof aParams);

public 
task_function(aParams[FUNC_PARAMS])
{
    new 
seconds aParams[FP_TIME]

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh