Server delay suddently?
#1

I don't understand why my server in the last days had kind of delay on commands?


for example if i type on chat normal n da , is not coming on chat , why?

http://i.imgur.com/jdpW6VF.png


I don't have scripts onplayerupdate , or lots of commands , i have mysql functins only on connection and exit ...
Reply
#2

Help , bug : if i type 'o da ' 'n da' is not working!?
Reply
#3

My onplayertext:
pawn Код:
public OnPlayerText(playerid, text[])
{
    new sendername[MAX_PLAYER_NAME];
    new tmp[256];
    new string[256];
    if(InTutorial[playerid] == 1) return 0;
    if(PlayerInfo[playerid][pMuted] == 1)
    {
        SendClientMessage(playerid, TEAM_CYAN_COLOR, "- Ai primit mute si nu poti sг vorbesti.");
        return 0;
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(AttachedMoleTo[i] == playerid)
        {
            if(!ProxDetectorS(10.0, playerid, i))
            {
                new stringmole[555];
                format(stringmole, 555, "[Mole Attached] %s spune: %s", GetName(playerid), text);
                SendClientMessage(i ,COLOR_PURPLE, stringmole);
             }
        }

    }

    if(TalkingLive[playerid] != 255)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "Live interview %s: %s", sendername, text);
        OOCNews(COLOR_LIGHTGREEN, string);
        return 0;
    }
    if(Mobile[playerid] != -1)
    {
        new idx;
        tmp = strtok(text, idx);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "%s iti spune (cellphone): %s", sendername, text);
        ProxDetector(10.0, playerid, string,COLOR_FADE2,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);


        if(Mobile[playerid] == 2525)
        {
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "(CNN PHONE) Bun venit pe linia telefonica de la cnn!");
                return 0;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(text);
            while ((idx < length) && (text[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = text[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            new payout = idx * SBizzInfo[6][sbEntranceCost] * 2;
            if(GetPlayerMoney(playerid) < payout + 900)
            {
                format(string,sizeof(string), "~R~NO CASH~N~~R~(%d$ )", payout);
                GameTextForPlayer(playerid, string, 5000, 1);
                Mobile[playerid] = -1;
                return 0;
            }
            if(adds == 0)
            {
                format(string,sizeof(string), "~Y~WAIT PLEASE ~R~60~Y~ SEC", payout);
                GameTextForPlayer(playerid, string, 5000, 1);
                Mobile[playerid] = -1;
                return 0;
            }
            SafeGivePlayerMoney(playerid, - payout);
            SBizzInfo[6][sbTill] += payout;
            new stringnumar[456];
            if(PlayerInfo[playerid][pPnumber] != 0)
            {
                format(stringnumar, 456, "%d", PlayerInfo[playerid][pPnumber]);
                strins(stringnumar, "-", 3);
            }
            else
            {
                stringnumar = "000-000";
            }
            new stringcnn[456];
            format(stringcnn, sizeof(stringcnn), "{5cb85c}Ad by %s (Phone: {FFFFFF}%s{5cb85c}) - '%s' ", GetName(playerid), stringnumar,  text);
            SendCNNMessage(-1, stringcnn)
            format(string, sizeof(string), "~Y~Paid ~R~%d$~n~~Y~%d Characters", payout, idx);
            GameTextForPlayer(playerid, string, 5000, 4);
            SetTimer("AddsOn", addtimer, 0); adds = 0;
            Mobile[playerid] = -1;
            return 0;
        }
        if(IsPlayerConnected(Mobile[playerid]))
        {
            if(Mobile[Mobile[playerid]] == playerid)
            {
                if(PlayerInfo[Mobile[playerid]][pSpeaker] == 1)
                {
                    ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE2,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
                else if (!ProxDetectorS(10.0, playerid, Mobile[playerid]))
                {
                    format(string, sizeof(string), "{FF9945}%s", string);
                    SendClientMessage(Mobile[playerid], COLOR_YELLOW,string); //aici
                }

            }
        }
        return 0;
    }
    if (realchat)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "%s spune: %s", sendername, text);
        ProxDetector(20.0, playerid, string,COLOR_FADE2,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        format(string, sizeof(string), "%s", text);
        SetPlayerChatBubble(playerid, string,COLOR_PURPLE, 4.0, strlen(text)*200);
        return 0;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)