AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help me i'm getting insane (https://forums.alliedmods.net/showthread.php?t=10764)

hellraser 02-28-2005 13:36

Help me i'm getting insane
 
hey all, this is very simple but it just won't work please help me to resolve my problem :'((

Code:

new g_teamScore[2]

public teamScore() {
new team[2]
new maxRounds = get_cvar_num("mp_maxrounds")
read_data(1,team,1)
g_teamScore[(team[0]=='C')? 0 : 1] = read_data(2)
client_print(0,print_chat,"Remaining rounds: %d",maxRounds -(g_teamScore[0] + g_teamScore[1]))
}

This is just the problematic part, i just want to show how many rounds are left before END and it just doesn't count the rounds that have past...like if mp_maxplayers = 5,then it will always say "Remaining rounds! 5"....
PLEASE HELP :'(!

Thx,

hellraser 02-28-2005 13:53

Nevermind....just forgot something elementary...please lock or delete or whatever :)

Thx


All times are GMT -4. The time now is 14:03.

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