Raised This Month: $51 Target: $400
 12% 

Call Admin IPB


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-12-2011 , 21:55   Re: Call Admin IPB
Reply With Quote #11

Optimization:

PHP Code:
    if( szText[0] != '/' // To avoid the native call equali() since this will most case most often.
    
{
        return 
PLUGIN_CONTINUE
    
}
    
    if( 
equaliszText"/calladmin"10 ) )
    {
        if( 
szText10 ] )
        {
            while( 
replaceszText10 ], charsmaxszText ), "  "" ") || equalszText10 ] ," " ) )
            {
                
ColorChatiPlayerRED"[%s]^x01 No reason defined!"Prefix )
                return 
PLUGIN_HANDLED
            
}

            new 
Query1001 
            new 
s_date get_systime( )
            
formatQuery1000DB_CALLszMids_dateservernameszText10 ], steamid )  
            
SQL_ThreadQuerySqlConnection"QueryCreateTable"Query 
            return 
PLUGIN_HANDLED
        
}
        else
        {
            
ShowPlayersiPlayer )
            return 
PLUGIN_HANDLED
        
}
    } 
For some reason that while loop just doesn't look right. Does it actually work correctly?
__________________
fysiks is offline
cFG
SourceMod Donor
Join Date: Aug 2009
Location: Poland, Łódź
Old 02-13-2011 , 06:07   Re: Call Admin IPB
Reply With Quote #12

Quote:
Originally Posted by Vechta View Post
Maybe you can make for more Shoutbox system's?
And more community forums systems
__________________
HLXBans - worthy successor of AMXBans
cFG is offline
outsiderlv
Senior Member
Join Date: Mar 2010
Old 02-13-2011 , 07:11   Re: Call Admin IPB
Reply With Quote #13

Updated the code.
outsiderlv is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-13-2011 , 12:44   Re: Call Admin IPB
Reply With Quote #14

You need to remove color chat to make it able to work on all mods.
__________________
fysiks is offline
outsiderlv
Senior Member
Join Date: Mar 2010
Old 02-14-2011 , 07:34   Re: Call Admin IPB
Reply With Quote #15

Thanks for advice fysiks!
Updated.
outsiderlv is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 02-17-2011 , 10:10   Re: Call Admin IPB
Reply With Quote #16

I can't see that arabian-hosted image ._.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
TzK
Member
Join Date: Apr 2010
Old 02-17-2011 , 10:46   Re: Call Admin IPB
Reply With Quote #17

Quote:
L 02/17/2011 - 176:50: [MySQL] Function not found: QueryCreateTable
L 02/17/2011 - 176:50: [AMXX] Displaying debug trace (plugin "calladmin.amxx")
L 02/17/2011 - 176:50: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 02/17/2011 - 176:50: [AMXX] [0] 82265.attach::CmdSay (line 115)
Trying to make this with my shoutbox, where table name is shoutbox_shouts, but it`s not working : /
TzK is offline
Send a message via Skype™ to TzK
outsiderlv
Senior Member
Join Date: Mar 2010
Old 02-18-2011 , 02:51   Re: Call Admin IPB
Reply With Quote #18

Accidently removed that thing while updating with cvars.
Btw, fixed. Try now.
outsiderlv is offline
TzK
Member
Join Date: Apr 2010
Old 02-18-2011 , 07:12   Re: Call Admin IPB
Reply With Quote #19

Now there is no Error, but it not shown in shoutbox. I see my msg in database, but it`s not shown in shoutbox >_<.
Quote:
mysql_mid = register_cvar( "ca_mysql_mid", "1" )
if this set to 1, shoudn`t s_mid in database be 1 not 0?
And in s_ip i got my steamid not ip :/
EDIT: Just saw, that after 20min it shown up that messages. It seems, like it show up, after some other write here in shoutbox.

Last edited by TzK; 02-18-2011 at 07:36.
TzK is offline
Send a message via Skype™ to TzK
t3hNox
Senior Member
Join Date: Oct 2009
Old 02-18-2011 , 16:29   Re: Call Admin IPB
Reply With Quote #20

In order to get this plugin to work with IPB3 shoutbox you will need to create a php file that will cache shouts when SQL query is executed from the plugin.
And to "run" it you will need to make a socket connection from the plugin to this specific php file.
t3hNox 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 08:20.


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