Raised This Month: $ Target: $400
 0% 

amx_tagct amx_tagt


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VisioNN
Junior Member
Join Date: Jan 2013
Old 01-05-2013 , 16:38   Re: amx_tagct amx_tagt
Reply With Quote #8

Thank`s now works that, but i have problem with read_argv

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

#define ACCESS ADMIN_SLAY
new tagct[] = "CT";
new 
tagt[] = "T"

public 
plugin_init() 
{
    
register_plugin("tag""1.0""tag");
    
register_concmd("amx_tagct""tagct"ACCESS"<Tagct> - CT Tag");
    
register_concmd("amx_tagt""tagt"ACCESS"<Tagt> - T Tag");
    
register_clcmd("say .score","say_score");
}

public 
say_score(id
{
    
client_print(idprint_chat"Score is: %s: 11 %s: 10"tagcttagt)
}
public 
tagctidlevelcid 


    if( !
cmd_accessidlevelcid) ) 
       return 
PLUGIN_HANDLED;       
 
    
read_argv(1tagct); 
    
remove_quotes(tagct); 
    
console_print(id"Tag from CT team is  %s"tagct





public 
tagtidlevelcid 


    if( !
cmd_accessidlevelcid) ) 
            return 
PLUGIN_HANDLED;        
    
read_argv(1tagt); 
    
remove_quotes(tagt); 
    
console_print(id"Tag from T team is %s"tagt


/tmp/textiNPmU5.sma(20) : error 021: symbol already defined: "tagct"
/tmp/textiNPmU5.sma(23) : error 010: invalid function or declaration
/tmp/textiNPmU5.sma(24) : error 010: invalid function or declaration
/tmp/textiNPmU5.sma(26) : error 021: symbol already defined: "read_argv"
/tmp/textiNPmU5.sma(31) : error 054: unmatched closing brace
/tmp/textiNPmU5.sma(34) : error 021: symbol already defined: "tagt"
/tmp/textiNPmU5.sma(37) : error 010: invalid function or declaration
/tmp/textiNPmU5.sma(3 : error 010: invalid function or declaration

8 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textiNPmU5.amx (compile failed).
VisioNN 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 13:21.


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