Raised This Month: $ Target: $400
 0% 

[HELP] My Code Not Working Fine :(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-11-2014 , 07:16   [HELP] My Code Not Working Fine :(
Reply With Quote #1

Check It Not Working

PHP Code:
#include <amxmodx>
#include <dhudmessage> 

#define PLUGIN        "KGC TagMe"
#define VERSION        "1.2"
#define AUTHOR        "XYZ"

#define cm(%1)        (sizeof(%1)-1)

new pCvar_Tag;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
// Hook For the Cmd
    
register_clcmd("say""Handle");
    
register_clcmd("say_team""Handle");
    
    
// Cvar
    
pCvar_Tag register_cvar("amx_sv_tag""-=|[K[G]C]|=- | ");
    
    
set_task(60.0,"Adv",_,_,_,"b");
    
}

public 
Handle(id)
{
    static 
szName[33], szTag[16];
    new 
Msg[32]
    
read_args(Msgcharsmax(Msg))
    
remove_quotes(Msg)
    
get_user_name(idszNamecm(szName));
    
get_pcvar_string(pCvar_TagszTagcm(szTag));
          
    
// Make Tag
    
if(equali(Msg"/tagme")) {
        
format(szNamecm(szName), "%s%s"szTagszName);
        
set_user_info(id"name"szName);
       
set_dhudmessage(016000.200.6026.012.0)
       
show_dhudmessage(id"You Got Our Server Tag")
         }
    
// Untag    
    
if(equali(Msg"/untag")) {
        
replace_allszNamecm(szName), szTag"" );
        
set_user_infoid"name"szName );
        
set_dhudmessage(016000.200.6026.012.0)
        
show_dhudmessage(id"You Remove Our Server Tag")
      }
      
    
// Alredy Tag
    
if(containi(szNameszTag) != -1) {
        
set_dhudmessage(016000.200.6026.012.0)
        
show_dhudmessage(id"You Already Have Our Server Tag")
        }
        
    return 
PLUGIN_CONTINUE;
}  

public 
Adv(id
{
        
set_dhudmessage(016000.700.7021.014.0
        
show_dhudmessage(id"To Get Our Server Tag^nType /tagme")

__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]

Last edited by priyojit; 12-11-2014 at 07:27.
priyojit is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-11-2014 , 07:19   Re: [HELP] My TagMe New Code Not Working Fine :(
Reply With Quote #2

Don't start multiple threads for the same issue, here's your first one.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-11-2014 , 07:21   Re: [HELP] My TagMe New Code Not Working Fine :(
Reply With Quote #3

Quote:
Originally Posted by wickedd View Post
Don't start multiple threads for the same issue, here's your first one.
bro check it its new code not the old one first check it then say -_-
__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]
priyojit is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-11-2014 , 14:53   Re: [HELP] My TagMe New Code Not Working Fine :(
Reply With Quote #4

Quote:
Originally Posted by priyojit View Post
bro check it its new code not the old one first check it then say -_-
Just because you added some shit to it doesn't mean you need to start a new thread.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Old 12-11-2014, 07:30
priyojit
This message has been deleted by priyojit.
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-11-2014 , 07:43   Re: [HELP] My Code Not Working Fine :(
Reply With Quote #6

After 14 minutes you start complaining that you get no help ?
__________________
HamletEagle is offline
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-11-2014 , 07:56   Re: [HELP] My Code Not Working Fine :(
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
After 14 minutes you start complaining that you get no help ?
Bro Check my code and tell me wht to do ???
__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]
priyojit is offline
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-11-2014 , 08:52   Re: [HELP] My Code Not Working Fine :(
Reply With Quote #8

anyone pls tell me my code not working please resolve my error
__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]
priyojit is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 12-11-2014 , 09:05   Re: [HELP] My Code Not Working Fine :(
Reply With Quote #9

what is the error it showing when compiling
tousif is offline
priyojit
Member
Join Date: Nov 2013
Location: Kolkata
Old 12-11-2014 , 09:46   Re: [HELP] My Code Not Working Fine :(
Reply With Quote #10

Quote:
Originally Posted by tousif View Post
what is the error it showing when compiling
its not compile error

its error this section


PHP Code:
public Handle(id

    static 
szName[33], szTag[16]; 
    new 
Msg[32
    
read_args(Msgcharsmax(Msg)) 
    
remove_quotes(Msg
    
get_user_name(idszNamecm(szName)); 
    
get_pcvar_string(pCvar_TagszTagcm(szTag)); 
           
    
// Make Tag 
    
if(equali(Msg"/tagme")) { 
        
format(szNamecm(szName), "%s%s"szTagszName); 
        
set_user_info(id"name"szName); 
       
set_dhudmessage(016000.200.6026.012.0
       
show_dhudmessage(id"You Got Our Server Tag"
         } 
    
// Untag     
    
if(equali(Msg"/untag")) { 
        
replace_allszNamecm(szName), szTag"" ); 
        
set_user_infoid"name"szName ); 
        
set_dhudmessage(016000.200.6026.012.0
        
show_dhudmessage(id"You Remove Our Server Tag"
      } 
       
    
// Alredy Tag 
    
if(containi(szNameszTag) != -1) { 
        
set_dhudmessage(016000.200.6026.012.0
        
show_dhudmessage(id"You Already Have Our Server Tag"
        } 
         
    return 
PLUGIN_CONTINUE

when i type /tagme Both "You Already Have Our Server Tag" and "You Got Our Server Tag" coming plz correct it
__________________
Learning Pawn [20% Completed] | Java [100%] | PHP [100%] | CSS [100%]
priyojit is offline
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 15:19.


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