Hello there,
What am i doing wrong here so that it wont work?
PHP Code:
public EndVote2(id)
{
new total = gVotes[0] + gVotes[1]
new name[32], authid[40]
get_user_name(tempid, name, 31)
get_user_authid(tempid, authid, 31)
if (gVotes[0] > gVotes[1])
{
ColorChat(0, GREY, "%s ^1Question: (ban) ^4%s", Prefix, name)
ColorChat(0, GREY, "%s ^1Reason: ^4%s^1", Prefix, BanReasons[reason])
ColorChat(0, GREY, "%s ^1Length:^4 30^1 minutes", Prefix)
ColorChat(0, GREY, "%s ^1Total votes: ^4%i^1 - Yes: ^4%i", Prefix, total, gVotes[0])
server_cmd("amx_ban #%s 30 ^"%s^"", authid, BanReasons[reason])
}
__________________