Problem giving out XP with a for loop
I'm running an XP-type mod on my server with a sort-of reverse CSDM Tickets running on it; whenever a player kills someone, they add to the team score, first team score to (x) wins. When a team wins, the losing team is supposed to be slayed while the winning team gets an XP rewards (dubbed totalkills[id] in the code below)
The problem is that I set the XP reward to be given to the winning players to 300 but it never gives that actual number. Instead, it gives something much larger, anywhere from 300 to 5000 and thats causing some inflation in the server. Anyone mind giving it a look? All the relevant code is posted below: Some extra notes: -Using the CSDM define a bunch of times within the mod, so the csdm_PostDeath is off CSDM. - totalkills[id] is the variable for the XP i'm trying to hand out on win. Code:
new g_WinTeam |
| All times are GMT -4. The time now is 04:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.