Raised This Month: $ Target: $400
 0% 

Solved Difference?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 11-09-2022 , 01:49   Re: Difference?
Reply With Quote #1

It depends on how you want to use them. If you want to have three floats to pick origin points, you don't need to use the second option just to save lines. Stick with the first one, more organized and easy to understand.

I guess you've chosen a bad example to explain your question. There are no difference in the final code, just how you use them, as I said before...

PHP Code:
    pev(idpev_origin__fl_gOrigin[id])
    
console_print(id"%.1f %.1f %.1f"__fl_gOrigin[id][0], __fl_gOrigin[id][1], __fl_gOrigin[id][2]) 
#2

PHP Code:
    pev(idpev_origin__fl_gOrigin[id][0])
    
console_print(id"%.1f %.1f %.1f"__fl_gOrigin[id][0][0], __fl_gOrigin[id][0][1], __fl_gOrigin[id][0][2])
    
    
pev(idpev_origin__fl_gOrigin[id][1])
    
console_print(id"%.1f %.1f %.1f"__fl_gOrigin[id][1][0], __fl_gOrigin[id][1][1], __fl_gOrigin[id][1][2])
    
    
pev(idpev_origin__fl_gOrigin[id][2])
    
console_print(id"%.1f %.1f %.1f"__fl_gOrigin[id][2][0], __fl_gOrigin[id][2][1], __fl_gOrigin[id][2][2]) 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 11-09-2022 at 01:49.
EFFx is offline
Reply



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 15:37.


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