Raised This Month: $ Target: $400
 0% 

help with my code?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-16-2006 , 23:39  
Reply With Quote #1

Not if I do something like this right?...but it gives me a tag mismatch on "if(!Frags > 3)" and apparently "return PLUGIN_CONTINUED" it doesnt like.

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "ktd" #define VERSION "0.1" #define AUTHOR "SweatyBanana" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("ResetHUD", "ktd", "b") } public ktd(id) {     new Frags = get_user_frags(id)     new Deaths = get_user_deaths(id)     new MAXFRAGDEATH = 3 * Deaths     new LIMITWARN = 2 * Deaths     new name[32]               if(!Frags > 3)     {         get_user_name(id,name,31)         client_print(0,print_chat,"[KTD] Anyone with a kill/death ratio will be kicked.",name)     }         if(Frags >= LIMITWARN)     {         get_user_name(id,name,31)         client_print(0,print_chat,"WARNING: %s will be kicked soon for too high of a Kill/Death ratio.",name)     }     if(Frags >= MAXFRAGDEATH)     {         get_user_name(id,name,31)         client_print(0,print_chat,"[KTD] %s has been kicked due to too high of a Kill/Death ratio.",name)         server_cmd("kick ^"%s^" ^" too high of a Kill/Death ratio^"",name);     }     return PLUGIN_CONTINUED     }
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Reply



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:35.


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