Raised This Month: $ Target: $400
 0% 

Scripting Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 02-02-2010 , 17:44   Re: Scripting Help
Reply With Quote #17

yes, because intPlayerIndex will change in the for loop, and assign each index 1 through MAXPLAYERS to unlimited ammo.

to clarify, each player is assigned an index number 1 to max players. if there are 32 players, there will be indicies 1-32. the FOR loop will assign intPlayerIndex (which starts at 1) to player index 1, then intPlayerIndex changes to 2, assigns to player 2, changes to 3, assigns to 3 etc.

what you had before only assigned player index 1 unlimited ammo
__________________
M249-M4A1 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 10:57.


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