Raised This Month: $ Target: $400
 0% 

where the error?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kent4
Junior Member
Join Date: Oct 2011
Location: Russia, Perm
Old 10-31-2011 , 14:25   where the error?
Reply With Quote #1

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

#define VIP_FLAG ADMIN_LEVEL_H

public plugin_init()
{
    
register_plugin("123""version""autor");
}
public 
ct_message_format(id)
{
if ( 
get_user_flags id ) & VIP_FLAG )
    {
        
ct_add_to_msg(CT_MSGPOS_PREFIX"[VIP]");
    }
    
    return 
PLUGIN_CONTINUE;

Spoiler


why not plug running?

Last edited by kent4; 10-31-2011 at 14:31.
kent4 is offline
Send a message via ICQ to kent4
Old 10-31-2011, 15:21
kramesa
This message has been deleted by kramesa.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-31-2011 , 19:32   Re: where the error?
Reply With Quote #2

Quote:
Originally Posted by kent4 View Post
where the error?
ct_message_format(id) is never executed.
__________________

Last edited by fysiks; 10-31-2011 at 19:32.
fysiks is offline
kent4
Junior Member
Join Date: Oct 2011
Location: Russia, Perm
Old 11-01-2011 , 10:28   Re: where the error?
Reply With Quote #3

Please tell me how to write properly?
kent4 is offline
Send a message via ICQ to kent4
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-01-2011 , 16:25   Re: where the error?
Reply With Quote #4

Quote:
Originally Posted by kent4 View Post
Please tell me how to write properly?
I don't know what you are trying to do, nor do I know what the function you use from the include does so I can't really help you. If you tell us what you are trying to do and provide a link to the include then you might get some help.
__________________
fysiks is offline
kent4
Junior Member
Join Date: Oct 2011
Location: Russia, Perm
Old 11-03-2011 , 14:50   Re: where the error?
Reply With Quote #5

if a certain player has a flag such as "T" when composing a message in chat before or after the nickname, spelled VIP
example:
[VIP] player: text
or
player [VIP]: text

sorry: translate.google

Last edited by kent4; 11-03-2011 at 14:51.
kent4 is offline
Send a message via ICQ to kent4
Old 11-03-2011, 15:00
kramesa
This message has been deleted by Emp`. Reason: No.
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 11-03-2011 , 15:09   Re: where the error?
Reply With Quote #6

Quote:
Originally Posted by kramesa View Post

This?
No.
Backstabnoob is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-03-2011 , 15:12   Re: where the error?
Reply With Quote #7

Quote:
Originally Posted by Backstabnoob View Post
No.
Fail haha
__________________
kramesa is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-03-2011 , 15:29   Re: where the error?
Reply With Quote #8

Make sure you are running the Colored Translit v3.0 plugin.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
kent4
Junior Member
Join Date: Oct 2011
Location: Russia, Perm
Old 11-03-2011 , 15:45   Re: where the error?
Reply With Quote #9

is it possible to do without the plug colored_translit? and write my idea of ​​standard modules without colored_translit?
kent4 is offline
Send a message via ICQ to kent4
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 14:26.


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