Raised This Month: $ Target: $400
 0% 

need a more editng about tag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jondd
BANNED
Join Date: Oct 2009
Old 10-26-2009 , 09:31   need a more editng about tag
Reply With Quote #1

PHP Code:

#include   

new const PRE_TAG[] = "" 
new const POST_TAG[] = ""

public plugin_init() 

    
register_plugin("Tag,"1.0","Fysiks") 


public client_putinserver(id) 

    new name[33] 
    get_user_name(id,name,32) 

    format(name, charsmax(name), "
%s%s%s", PRE_TAG, name, POST_TAG) 

    set_user_info(id, "
name", name) 


Last edited by jondd; 10-29-2009 at 03:22.
jondd is offline
jondd
BANNED
Join Date: Oct 2009
Old 10-26-2009 , 09:39   Re: need a more editng
Reply With Quote #2

PHP Code:
can this 
new const PRE_TAG[] = "" 
new const POST_TAG[] = "" 
be placed in tag.ini file...or from console i can set tag for team like
CT "BLUE!!" and
T "FIRE||"

Last edited by jondd; 10-27-2009 at 03:39.
jondd is offline
jondd
BANNED
Join Date: Oct 2009
Old 10-28-2009 , 04:52   Re: need a more editng
Reply With Quote #3

Quote:
Originally Posted by jondd View Post
PHP Code:
can this 
new const PRE_TAG[] = "" 
new const POST_TAG[] = "" 
be placed in tag.ini file...or from console i can set tag for team like
CT "BLUE!!" and
T "FIRE||"
I want this !!!
jondd is offline
Old 10-27-2009, 03:39
jondd
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 10-27-2009, 06:43
izzle
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
jondd
BANNED
Join Date: Oct 2009
Old 10-28-2009 , 03:46   Re: need a more editng-(Flysiks)
Reply With Quote #6

did u edit it.?//
jondd is offline
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 10-28-2009 , 04:24   Re: need a more editng-(Flysiks)
Reply With Quote #7

Code:
#include   

new const PRE_TAG[] = "" 
new const POST_TAG[] = ""

public plugin_init() 
{ 
    register_plugin("Tag,"1.0","Fysiks") 
} 

public client_putinserver(id) 
{ 
    new name[33] 
    get_user_name(id,name,32) 

    format(name, charsmax(name), "%s%s%s", PRE_TAG, name, POST_TAG) 

    set_user_info(id, "name", name) 
}
You should include something

Code:
#include
-->
Code:
#include <amxmodx>

and also i may be wrong (i usually have when it comes to arrays -.-)

Code:
format(name, charsmax(name), "%s%s%s", PRE_TAG, name, POST_TAG)
-->
Code:
format(name, 32, "%s%s%s", PRE_TAG, name, POST_TAG)
micke1101 is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-28-2009 , 04:50   Re: need a more editng-(Flysiks)
Reply With Quote #8

Quote:
Originally Posted by micke1101 View Post
Code:
format(name, charsmax(name), "%s%s%s", PRE_TAG, name, POST_TAG)
-->
Code:
format(name, 32, "%s%s%s", PRE_TAG, name, POST_TAG)
Both ways are correct. You see, charsmax() retrieves the size of the string - 1, so in that case: 33 - 1 equals 32.

@ jondd
I don't see the problem, the code is fine. What do you want?
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-28-2009 , 06:56   Re: need a more editng-(Flysiks)
Reply With Quote #9

lordshiva leave this forums alone
__________________
xPaw is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 10-28-2009 , 13:23   Re: need a more editng-(Flysiks)
Reply With Quote #10

Quote:
Originally Posted by xPaw View Post
lordshiva leave this forums alone
Jon 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 17:43.


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