Server_log.txt flooding
#1

my server log is full of this:
Код:
[23:38:42] tmp = 0, tmp2(logged) = 1, level = 1
[23:38:42] tmp = 0, tmp2(logged) = 1, level = 1
[23:38:42] tmp = 0, tmp2(logged) = 1, level = 1
[23:38:42] tmp = 0, tmp2(logged) = 1, level = 1
[23:38:42] tmp = 0, tmp2(logged) = 1, level = 1
Why?
Reply
#2

post the piece of script which contains 'tmp' together with 'print' or 'printf'
Reply
#3

Search for

printf("

and delete it out of your script.



This forum requires that you wait 120 seconds between posts. Please try again in 60 seconds.
Reply
#4

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Search for

printf("

and delete it out of your script.



This forum requires that you wait 120 seconds between posts. Please try again in 60 seconds.
I have seen you post invalid remarks in a lot of threads already today, which only shows you have no idea what you're talking about - so stop posting.

@GabryPonte: Could you show us at least 10 lines around the area where the server will produce that information to the console? We can identify the problem if you could do that.
Reply
#5

i can't find any printf in my script.

I found that the problem is generated by this part of code
pawn Код:
//-- SETVIP
dcmd_setvip(playerid, params[])
{
    new tmp[256] , Index; tmp = strtok(params,Index);
    new id = strval(tmp);
    if(!strlen(tmp)) return SendClientMessage(playerid, RED, "USA: /setvip [ID]");
    new file[20],Name[MAX_PLAYER_NAME];
    GetPlayerName(id,Name,sizeof(Name));
    format(file,sizeof(file),PlayerFile,Name);
    new string[128];
    if(IsPlayerAdminLevel(playerid, 3))
    {
        gPlayerInfo[id][PLAYER_ISVIP] = 1;
        dini_IntSet(file,"VIP",1);
        if(ITA[id] == 1) format(string, sizeof(string), "Sei ora un utente VIP! Usa /viphelp per vedere tutti i vantaggi");
        else format(string, sizeof(string), "You are now a VIP user! Use /viphelp");
        SendClientMessage(id, COLOUR_ORANGE,string);
        for(new i; i < MAX_PLAYERS; i++)
        {
       
            format(string, sizeof(string), "%s и ora un utente VIP! Usa /vipinfo per diventarlo anche tu", Name);
            if(ITA[i] == 1) SendClientMessage(i, COLOUR_ORANGE, string);
        }
    }
    else SendClientMessage(playerid, 0xFF0000AA, "Devi essere livello 3 per usare questo comando");
    return 1;
}
cuz when i add it the compiler show me this:
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           5580 bytes
Code size:          1277960 bytes
Data size:           204984 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4243 cells (16972 bytes)
Total requirements: 1504908 bytes
and if i delete it only this:
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
i can't find any error in this script :S
Reply
#6

Any filterscripts?
Reply
#7

i tried to remove them all. The problem is in the gm
Reply
#8

sorry 4 double post but the problems is here
pawn Код:
//-- SETVIP
dcmd_setvip(playerid, params[])
{
    new tmp[256] , Index; tmp = strtok(params,Index);
    new id = strval(tmp);
    if(!strlen(tmp)) return SendClientMessage(playerid, RED, "USA: /setvip [ID]");
    new file[20],Name[MAX_PLAYER_NAME];
    GetPlayerName(id,Name,sizeof(Name));
    format(file,sizeof(file),PlayerFile,Name);
    new string[128];
    if(IsPlayerAdminLevel(playerid, 3))
    {
        gPlayerInfo[id][PLAYER_ISVIP] = 1;
        dini_IntSet(file,"VIP",1);
        if(ITA[id] == 1) format(string, sizeof(string), "Sei ora un utente VIP! Usa /viphelp per vedere tutti i vantaggi");
        else format(string, sizeof(string), "You are now a VIP user! Use /viphelp");
        SendClientMessage(id, COLOUR_ORANGE,string);
        for(new i; i < MAX_PLAYERS; i++)
        {
       
            format(string, sizeof(string), "%s и ora un utente VIP! Usa /vipinfo per diventarlo anche tu", Name);
            if(ITA[i] == 1) SendClientMessage(i, COLOUR_ORANGE, string);
        }
    }
    else SendClientMessage(playerid, 0xFF0000AA, "Devi essere livello 3 per usare questo comando");
    return 1;
Not in deposit cmd
Reply
#9

You should move to sscanf 2 instead of strtok...

Anyway, if you couldn't find printf, search for print.
Reply
#10

No one print
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)