Thread: [Solved] Undefined symbol "id"
View Single Post
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-24-2018 , 03:09   Re: Undefined symbol "id"
Reply With Quote #8

Here's the code that he PM'ed me. Apparently he's new to coding.

PHP Code:
public plugin_init()
{
    
register_plugin("blAck-pack""1.0""blAck.")
    
    new 
flags get_user_flags(id)
    
    if(
flags ADMIN_CHAT)
    {
        
register_clcmd("say /apravila","apravila_motd")
        
register_clcmd("say_team /apravila","apravila_motd")
    }
    else    
    { 
I don't know if he needs to use client_authorized or if AMXX has another post admin check forward.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 06-24-2018 at 03:10.
DJ Tsunami is offline