Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Black Rose
Forum: Scripting Help 05-30-2016, 14:33
Replies: 11
Views: 1,809
Posted By Black Rose
Re: Question about Natives

Here are two examples based on what HamletEagle said:


// .inc
native my_native(id, optional=0)

// usage
my_native(id, 3)

// inside the native handler
Forum: Scripting Help 05-29-2016, 15:17
Replies: 11
Views: 1,809
Posted By Black Rose
Re: Question about Natives

I really don't fully understand your code.
You have to check how many params were used in the native. That's what num_params is for.
num_condition should not be there at all.
There's also no way...
Forum: Scripting Help 05-29-2016, 13:59
Replies: 11
Views: 1,809
Posted By Black Rose
Re: Question about Natives

No, you misunderstand. To get the id and attacker parameter values inside a style 0 dynamic native you have to use

new id = get_param(1);
new attacker = get_param(2);

Just continue like...
Forum: Scripting Help 05-29-2016, 13:32
Replies: 11
Views: 1,809
Posted By Black Rose
Re: Question about Natives

Not exactly sure what you need but you can add more or less as many parameters as you want/need.
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 02:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode