Raised This Month: $ Target: $400
 0% 

id + any_defined_value in set_task()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 06-24-2012 , 11:00   id + any_defined_value in set_task()
Reply With Quote #1

OK, I'm sick of this, it made me confused.
I read in some codes and tutorials (especially Exolent's tutorial about enums):
Code:
// Top #define WhatEver 49162 public anything(id) {     set_task(0.1, "fw_fw", id + WhatEver) } public fw_fw(bla) {     id = bla - WhatEver     // Code ... }
Why do they sum the index of the player (id) with the define (WhatEver) if they, eventually, will get the same player id, and they never re-use the define.

It's just confusing!!!!
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:15.


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