Raised This Month: $ Target: $400
 0% 

ban function isnt working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-15-2012 , 14:00   ban function isnt working
Reply With Quote #1

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(tempidname31)
    
get_user_authid(tempidauthid31)
    
    if (
gVotes[0] > gVotes[1])
    {
        
ColorChat(0GREY"%s ^1Question: (ban) ^4%s"Prefixname)
        
ColorChat(0GREY"%s ^1Reason: ^4%s^1"PrefixBanReasons[reason])
        
ColorChat(0GREY"%s ^1Length:^4 30^1 minutes"Prefix)
        
ColorChat(0GREY"%s ^1Total votes: ^4%i^1 - Yes: ^4%i"PrefixtotalgVotes[0])
        
server_cmd("amx_ban #%s 30 ^"%s^""authidBanReasons[reason])
    } 
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro 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 16:38.


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