|
Author
|
Message
|
|
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
|

05-10-2012
, 11:37
Re: Variables
|
#1
|
Quote:
Originally Posted by Napoleon_be
PHP Code:
public Cmd_EndVote(id) {
new maxvote = max(szNoScope, max(szNormal, max(szGravity, szVip)))
if (szNoScope == maxvote) {
Cmd_NoScope(id)
ColorChat(id, GREEN, "[%s]^1 The vote has ended!", szPrefix)
} else if (szNormal == maxvote) {
Cmd_Normal(id)
ColorChat(id, GREEN, "[%s]^1 The vote has ended!", szPrefix)
} else if (szGravity == maxvote) {
Cmd_HigherGravity(id)
ColorChat(id, GREEN, "[%s]^1 The vote has ended!", szPrefix)
} else { // implied that szVip is max
Cmd_KillVip(id)
ColorChat(id, GREEN, "[%s]^1 The vote has ended!", szPrefix)
}
}
It's printing the message, but it ain't starting the game... Should i loop trough something?
|
Starting the game? If the message is working then this code is working. If something else is not working then you need to look at the code that actually isn't working.
__________________
|
|
|
|