Raised This Month: $ Target: $400
 0% 

Give experience on roundstart


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
egbertjan
Senior Member
Join Date: Mar 2007
Location: The Netherlands
Old 05-10-2014 , 12:25   Give experience on roundstart
Reply With Quote #1

Hello guys,

I've been trying to give experience to players when the round start. I'm trying to do this with a loop, however the server is crashing upon execute. I'm wondering what's wrong with this:

Code:
public RoundStart() {
	for (new i=0; i < 33; i++){
		if(!is_user_bot(i)) {
		RoundExperience(i)
		}
	}
}

public RoundExperience(id) {
	Give_Xp(id, 20)
}

Last edited by egbertjan; 05-10-2014 at 12:27.
egbertjan 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 09:37.


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