Console Messages in game!
#1

Hey, I need help..

Now I've fixed the shit in the mysql and etc to start my server, And suddenly when I logged in, I found that Console messages are showing in game for everyone! Will you please help me?
Reply
#2

Can You Post a Print?
Reply
#3

For example..

This function ..

PHP Code:
SendAdminMessage(color, const text[], {Float,_}:...)
{
    static
          
args,
        
str[192];

    if((
args numargs()) <= 2)
    {
        foreach(new 
Player)
        {
            if(
PlayerInfo[i][pLogged] && PlayerInfo[i][pAdmin] > 0)
            {
                
SendClientMessage(icolortext);
            }
        }

        
printf(text);
    }
    else
    {
        while(--
args >= 2)
        {
            
#emit LCTRL     5
            #emit LOAD.alt     args
            #emit SHL.C.alt 2
            #emit ADD.C     12
            #emit ADD
            #emit LOAD.I
            #emit PUSH.pri
        
}
        
#emit PUSH.S         text
        #emit PUSH.C         192
        #emit PUSH.C         str
        #emit LOAD.S.pri     8
        #emit ADD.C         4
        #emit PUSH.pri
        #emit SYSREQ.C         format
        #emit LCTRL         5
        #emit SCTRL         4

        
foreach(new Player)
        {
            if(
PlayerInfo[i][pLogged] && PlayerInfo[i][pAdmin] > 0)
            {
                
SendClientMessage(icolorstr);
            }
        }

        
printf(str);

        
#emit RETN
    
}
    return 
1;

Used like that for example..
PHP Code:
SendAdminMessage(COLOR_YELLOW"AdmWarning: %s[%i] failed the health hack check as they tabbed."GetPlayerRPName(i), i); 
So it double sends in game one time with a white color, another time with Red Color..

Also most importantly, The join thing and leave ..

Example..

Quote:

[16:09:29] [connection] incoming connection: XXXXXXXX id: 0
[16:09:30] [join] BLA_BLA has joined the server (XXXXXXXXXX)
[16:09:30] The request failed! The response code was: 6

It sends these messages to every single player in game..
Reply
#4

MC double posted
Reply
#5

Quote:
Originally Posted by Nizarh
View Post
btw i'm knew in this scripting stuff, so I might be totally wrong.
I think with the loop on pLogged it will SendClientMessage,

PS: I'm totally knew please have pacience.
Mate it is not related to that SendClientMessage thing -_- , The problem is that the "print" somehow sent in game and in Console AT THE SAME TIME... Anyone got solution?
Reply
#6

Quote:
Originally Posted by Nizarh
View Post
btw i'm knew in this scripting stuff, so I might be totally wrong.
I think with the loop on pLogged it will SendClientMessage,

PS: I'm totally knew please have pacience.
Stop posting random code, that actually doesn't help him.
Reply
#7

Bump..
Reply
#8

There, logs if it could help you..

Quote:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[12:18:43]
[12:18:43] Server Plugins
[12:18:43] --------------
[12:18:43] Loading plugin: crashdetect.so
[12:18:43] CrashDetect v4.18.1 is OK.
[12:18:43] Loaded.
[12:18:43] Loading plugin: pawncmd.so
[12:18:43] Pawn.CMD plugin v3.1.3 by urShadow loaded
[12:18:43] Loaded.
[12:18:43] Loading plugin: sscanf.so
[12:18:43]

[12:18:43] ===============================

[12:18:43] sscanf plugin loaded.

[12:18:43] Version: 2.8.2

[12:18:43] © 2012 Alex "Y_Less" Cole

[12:18:43] ===============================

[12:18:43] Loaded.
[12:18:43] Loading plugin: streamer.so
[12:18:43]

*** Streamer Plugin v2.9.1 by Incognito loaded ***

[12:18:43] Loaded.
[12:18:43] Loading plugin: SKY.so
[12:18:45] Loaded.
[12:18:45] Loading plugin: Whirlpool.so
[12:18:45]
[12:18:45] ==================
[12:18:45]
[12:18:45] Whirlpool loaded
[12:18:45]
[12:18:45] ==================
[12:18:45]
[12:18:45] Loaded.
[12:18:45] Loading plugin: nativechecker.so
[12:18:45] Loaded.
[12:18:45] Loading plugin: mysql_static.so
[12:18:45] >> plugin.mysql: R39-5 successfully loaded.
[12:18:45] Loaded.
[12:18:45] Loading plugin: regex.so
[12:18:45]

[12:18:45] ______________________________________

[12:18:45] Regular Expression Plugin v0.2.1 loaded
[12:18:45] ______________________________________

[12:18:45] By: Fro © Copyright <TBG> 2009-2011
[12:18:45] ______________________________________

[12:18:45] Loaded.
[12:18:45] Loading plugin: YSF.so
[12:18:46] ARRAY_ConsoleCommands: 8196920
[12:18:46]

[12:18:46] ===============================

[12:18:46] YSF - kurta999's version R19 loaded

[12:18:46] © 2008 Alex "Y_Less" Cole - © 2010 - 2016 kurta999

[12:18:46] Server version: 0.3.7 R2-1

[12:18:46] Operating System: Linux

[12:18:46] Built on: Mar 13 2017 at 00:24:15

[12:18:46] ===============================

[12:18:46] Loaded.
[12:18:46] Loaded 10 plugins.

[12:18:47]
[12:18:47] Filterscripts
[12:18:47] ---------------
[12:18:47] Loading filterscript 'anti-flood_+_ip_limits.amx'...
[12:19:23] AMX (141622952) loaded
[12:19:23] Loaded 1 filterscripts.

[12:20:18] AMX (141622832) loaded
[12:20:18] Error: Function not registered: 'regex_build'
[12:20:18] Error: Function not registered: 'regex_match_exid'
[12:20:18] Error: Function not registered: 'mysql_format'
[12:20:18] Error: Function not registered: 'mysql_tquery'
[12:20:18] Error: Function not registered: 'cache_insert_id'
[12:20:18] Error: Function not registered: 'mysql_escape_string'
[12:20:18] Error: Function not registered: 'cache_get_data'
[12:20:18] Error: Function not registered: 'cache_get_field_content'
[12:20:18] Error: Function not registered: 'cache_get_field_content_int'
[12:20:18] Error: Function not registered: 'cache_get_field_content_float'
[12:20:18] Error: Function not registered: 'mysql_unprocessed_queries'
[12:20:18] Error: Function not registered: 'cache_get_row_count'
[12:20:18] Error: Function not registered: 'cache_get_row_int'
[12:20:18] Error: Function not registered: 'cache_affected_rows'
[12:20:18] Error: Function not registered: 'cache_get_row'
[12:20:18] Error: Function not registered: 'mysql_connect'
[12:20:18] Error: Function not registered: 'mysql_errno'
[12:20:18] Error: Function not registered: 'mysql_close'
[12:20:19] Get shit on by Anti-DeAMX
[12:20:20] 508 objects loaded.
[12:20:20] Number of vehicle models: 71
[12:20:22] [Script] 1 houses loaded.
[12:20:22] [Script] 0 garages loaded.
[12:20:23] [Script] 0 businesses loaded.
[12:20:23] [Script] 1 entrances loaded.
[12:20:23] [Script] 0 factions loaded.
[12:20:23] [Script] 1 lands loaded.
[12:20:23] [Script] 0 gangs loaded.
[12:20:23] [Script] 0 points loaded.
[12:20:23] [Script] 0 turfs loaded.
[12:20:23] [Script] 0 locations loaded
[12:20:23] [Script] 0 crews loaded
[12:20:23] [Script] 0 atms loaded
[12:20:23] [Script] 0 Player Backpacks loaded.
[12:20:23] [Script] 0 vips removed.

Reply
#9

I cant understand what is your problem is..
Reply
#10

Quote:
Originally Posted by Mugalito
View Post
I cant understand what is your problem is..
Normally an Console Message like for example
Quote:

[join]The_Player has joined the server(player_ip)

Can be only shown inside the Server_logs, or things like that
Quote:

RCON (In-Game): Player #0 (The_Player) has logged in.

Appears only in the server log! But it does appear in game now, For every player, What's the reason of that??

To make it more clear, The server logs are shown in game, Got me??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)