Addon Api Documentation website
#11
@pieter i disabled account registration and comments.

I thought comments can be usefull... but you're rightWink

#12
documentations shouldnt have comments or any other interaction then explaining how shit works Smile

see it as adding a comment section to every wikipedia page Tongue
Had a life, Got a modem..

#13
Comments were activated because when i made the website, i thought about good comments on php.net, so i thought some comments can be useful...

But without comments it will be proper for sureWink

#14
The comments on php.net helped me a lot.
Altough it would be more useful if people didn't had to register to place comments

#15
@Ich1994 did it already :/
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click

#16
(07-15-2012, 19:47)narkos Wrote: Also what is that:
Code:
int Entity_World //Integer holding the EntityNum of 'World' int AddonFrameInterval //Integer holding the interval of OnAddonFrame in milliseconds
Is that like global addon variables available in all the plugins?

Thx in advance for the answers!

Very good job!

Entity_World: Every entity has it's own number (ID). The last entity (2047) is the world entity. The entity which includes everything. It is needed if you for example want to display a hudelement to everyone.

AddonFrameInterval: The event OnAddonFrame is triggered by a thread in the addon. This thread has a specific interval which is currently 250ms (4FPS). However since this number could change one time in the developement I created this constant variable which holds this interval so plugin developers can use this instead of a number. For example if you want to do something every second:

Code:
private int counter = 0; public override void OnAddonFrame() { counter++; if(counter==1000/AddonFrameInterval) { counter = 0; //do your stuff here //exectued every second } }
[Image: azuw.jpg]

#17
Thank you!

Will the next addon update have more variables like this? Is it usefull to create a new section for 'variables' as 'functions', 'events' and 'Struct/Enums' sections in the doc?
Or should i had them in 'Struct/Enums' section?

I saw in a post that you already added weaponbuilder to the next addon update? Can i get more infos yet to integrate to the doc? Wink

Thanks!



Possibly Related Threads…
Thread Author Replies Views Last Post
  Hosting With Addon obliviron 9 10,689 11-04-2013, 22:13
Last Post: d0h!
  Getting text from a website JustDoingThisShit 2 4,245 10-21-2013, 08:00
Last Post: JustDoingThisShit
  Issue with server addon and NAT dimitrifrom31 3 8,227 10-08-2013, 18:11
Last Post: iRoNinja
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 6,364 09-29-2013, 19:46
Last Post: Nekochan
  @Nukem, and New addon E-losev 4 6,191 08-23-2013, 20:45
Last Post: yokai134
  [Request] download link server exe for addon lander 2 4,211 08-01-2013, 19:57
Last Post: lander
  Help Addon information Bandarigoda123 2 4,684 07-20-2013, 15:47
Last Post: Bandarigoda123
  Help mw3 addon error [HARD] Tony. 2 5,758 06-08-2013, 00:32
Last Post: master131
  Help a Previous Addon Bandarigoda123 1 3,479 05-21-2013, 19:10
Last Post: [HARD] Tony.
  Last version of Addon .sepultura. 2 4,568 05-01-2013, 19:13
Last Post: .sepultura.

Forum Jump:


Users browsing this thread:
2 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.