Raised This Month: $ Target: $400
 0% 

more code not compiling...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-21-2006 , 07:59   more code not compiling...
Reply With Quote #1

Check this out...

invalid experession assumed 0 on line 11

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #define PLUGIN = "TeamSwitch" #define VERSION = "1.0" #define AUTHOR = "SweatyBanana" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say /ct", "TEAMCT")     register_clcmd("say_team /ct", "TEAMCT")     register_clcmd("say /t", "TEAMT")     register_clcmd("say_team /t", "TEAMT")     register_clcmd("say /spec", "SPEC")     register_clcmd("say_team /spec", "SPEC") } public TEAMCT() {     if(cs_get_user_team(id) == CS_TEAM_CT)     {         client_print(1, print_chat, "[TEAMS] You are already on the CT team.")         return PLUGIN_HANDLED     }         if(cs_get_user_team(id) != CS_TEAM_CT)     {         return PLUGIN_CONTINUE     }         else     {         new name[32]         get_user_name(id,name,31)         if(is_user_alive(id)) user_kill(id)         cs_set_user_team ( id, CS_TEAM_CT, CS_CT_URBAN)         client_print(0, print_chat, "[TEAMS] %s has switched himself to the CT team.", name)     } } public TEAMT() {     if(cs_get_user_team(id) == CS_TEAM_T)     {         client_print(1, print_chat, "[TEAMS] You are already on the TERRORIST team.")         return PLUGIN_HANDLED     }         if(cs_get_user_team(id) != CS_TEAM_T)     {         return PLUGIN_CONTINUE     }             else     {         new name[32]         get_user_name(id,name,31)         if(is_user_alive(id)) user_kill(id)         cs_set_user_team ( id, CS_TEAM_T, CS_T_TERROR)         client_print(0, print_chat, "[TEAMS] %s has switched himself to the CT team.", name)     } } public SPEC() {     if(cs_get_user_team(id) == CS_TEAM_SPECTATOR)     {         client_print(1, print_chat, "[TEAMS] You are already on the TERRORIST team.")         return PLUGIN_HANDLED     }         if(cs_get_user_team(id) != CS_TEAM_SPECTATOR)     {         return PLUGIN_CONTINUE     }         else     {         new name[32]         get_user_name(id,name,31)         if(is_user_alive(id)) user_kill(id)         cs_set_user_team ( id, CS_TEAM_SPECTATOR)         client_print(0, print_chat, "[TEAMS] %s has switched himself to the SPECTATORS", name)     } }
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
 



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


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