Raised This Month: $ Target: $400
 0% 

Master Reset


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-21-2012 , 15:35   Re: Master Reset
Reply With Quote #7

Quote:
Originally Posted by pokemonmaster View Post
Here is an example of looping (from my experience xD):
PHP Code:
public cmd_mreset(id) {

          new 
players[32], count
          get_players
(playerscounth)

          for(new 
ii<counti++) {
                     
cs_set_user_deaths(i0)  
                     
set_user_frags(i0)          // This as I know needs the fun include
                     
}

two things wrong.
1. h needs to be in quotes. its passed as a string
2. i is an index of the players array (you're iterating through it), not playerID. players is an array of valid playerIDs.

EDIT: did you guys read the wiki at all!? It tells you THIS EXACT CODE on the page. GO!
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 06-21-2012 at 15:39.
Liverwiz 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:14.


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