Advertise Here

Author Topic: [help] Public Void troubles?  (Read 6359 times)

0 Members and 1 Guest are viewing this topic.

Offline Tonypker13

  • SMF For Free Newbie
  • *
  • Posts: 6
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
[help] Public Void troubles?
« on: September 25, 2008, 07:37:12 am »
Hey guys, Got any tips on how to make this work? Its a void I just randomly made but It doesn't seem to work...

Code: [Select]
public void resetRanks() {
for (int i = 0; i < 10; i++) {
server.ranks[i] = 0;
server.rankPpl[i] = "";
}

Offline Shimmy Shabby

  • SMF For Free Full Member
  • *
  • Posts: 143
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [help] Public Void troubles?
« Reply #1 on: October 16, 2008, 02:34:50 pm »
Hey guys, Got any tips on how to make this work? Its a void I just randomly made but It doesn't seem to work...

Code: [Select]
public void resetRanks() {
for (int i = 0; i < 10; i++) {
server.ranks[i] = 0;
server.rankPpl[i] = "";
}
How exzactly do you want it to work? I don't see what your trying to do, Give a little more information please.


Offline Roger

  • SMF For Free Newbie
  • *
  • Posts: 1
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [help] Public Void troubles?
« Reply #2 on: May 25, 2009, 05:25:17 pm »
Well first off you've forgot a bracket.  

Code: [Select]
public void resetRanks() {
for (int i = 0; i < 10; i++) {
server.ranks[i] = 0;
server.rankPpl[i] = "";
}
}
« Last Edit: May 25, 2009, 05:26:58 pm by Roger »
I'm Rog3r.

Offline ipwxy

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 6
    Badges: (View All)
    Windows User Topic Starter Level 1 First Post Second year Anniversary
Re: [help] Public Void troubles?
« Reply #3 on: June 09, 2009, 08:56:11 pm »
Hey guys, Got any tips on how to make this work? Its a void I just randomly made but It doesn't seem to work...

Code: [Select]
public void resetRanks() {
for (int i = 0; i < 10; i++) {
server.ranks[i] = 0;
server.rankPpl[i] = "";
}
To me, it looks like you want something to reset the ranks for multiple arrays 10 times..

Offline Games

  • SMF For Free Member
  • *
  • Posts: 43
    • View Profile
    • Games

  • Total Badges: 11
    Badges: (View All)
    Apple User Topic Starter Combination Level 2 Level 1
Re: [help] Public Void troubles?
« Reply #4 on: August 26, 2009, 05:37:32 pm »
Hey guys, Got any tips on how to make this work? Its a void I just randomly made but It doesn't seem to work...

Code: [Select]
public void resetRanks() {
for (int i = 0; i < 10; i++) {
server.ranks[i] = 0;
server.rankPpl[i] = "";
}

It could be in the array you are using. Could you post some details on it?

www.everygame.smfforfree.com
If you even remotely like games, join today!

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
2701 Views
Last post January 21, 2007, 03:13:45 am
by Laugh-nd-kid
0 Replies
1261 Views
Last post April 08, 2007, 10:19:32 am
by Nutz
0 Replies
1314 Views
Last post July 12, 2007, 11:59:27 am
by RS Unlimed
0 Replies
1189 Views
Last post March 11, 2009, 07:44:48 pm
by lamarr912
1 Replies
4956 Views
Last post October 15, 2009, 09:46:48 pm
by Mdog