SA-MP Forums Archive
strange problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: strange problem (/showthread.php?tid=316160)



strange problem - park4bmx - 05.02.2012

i have a server running from a long time and in a few days im experiance a new problem
surver is running 100% dine until more then 3 players join the server.
players start to not see eachother after more the 3 players join


Re: strange problem - Baboon - 05.02.2012

Wow that is really weird.
One question.
did you add return 1; at OnPlayerUpdate?
Could be a desync.


Re: strange problem - sleepysnowflake - 05.02.2012

Check your code, maybe some hacker got in and changed something. Try restarting it, if not, try reuloading it with the one in your PC, which you are sure it is Bug-Free.


Re: strange problem - park4bmx - 05.02.2012

Quote:
Originally Posted by Strawhats
Посмотреть сообщение
Wow that is really weird.
One question.
did you add return 1; at OnPlayerUpdate?
Could be a desync.
it is return 1;
Quote:
Originally Posted by Berlovan
Посмотреть сообщение
Check your code, maybe some hacker got in and changed something. Try restarting it, if not, try reuloading it with the one in your PC, which you are sure it is Bug-Free.
dont think so all the code is fine i even have it backup from last week when it was workin 100% fine.
So weird :X


Re: strange problem - iPLEOMAX - 05.02.2012

I think you need to get more info on this.

When there are more than 3 players in the server, get some server/player information using debug codes..

pawn Код:
//Some examples would be:

    new
        Float:temp1, Float:temp2, Float:temp3,
        temp4, temp5, temp6
    ;
   
    for (new i=0; i<MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        GetPlayerPos(i, temp1, temp2, temp3);
        temp4 = GetPlayerVirtualWorld(i);
        temp5 = GetPlayerInterior(i);
        temp6 = GetPlayerPing(i);
        printf("Player %i's Position X:%f, Y:%f, Z:%f, Virtual World: %i, Interior: %i, PING: %i",
        i, temp1, temp2, temp3, temp4, temp5, temp6);
                //And other..
    }
//Check if everything outputs normal?
And maybe some server related informations too (netstats or something)?

That would help you better.


Re: strange problem - park4bmx - 05.02.2012

Quote:
Originally Posted by iPLEOMAX
Посмотреть сообщение
I think you need to get more info on this.

When there are more than 3 players in the server, get some server/player information using debug codes..

pawn Код:
//Some examples would be:

    new
        Float:temp1, Float:temp2, Float:temp3,
        temp4, temp5, temp6
    ;
   
    for (new i=0; i<MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        GetPlayerPos(i, temp1, temp2, temp3);
        temp4 = GetPlayerVirtualWorld(i);
        temp5 = GetPlayerInterior(i);
        temp6 = GetPlayerPing(i);
        printf("Player %i's Position X:%f, Y:%f, Z:%f, Virtual World: %i, Interior: %i, PING: %i",
        i, temp1, temp2, temp3, temp4, temp5, temp6);
                //And other..
    }
//Check if everything outputs normal?
And maybe some server related informations too (netstats or something)?

That would help you better.
hmm so your saying they might be puted in a different virual world. Hmm
i will do a test of that but im 100% sure that they are in the same x,y,z

unfortunately i will not be able to test it today :\