Script problem
#5

Quote:
Originally Posted by RainMultiGaming
Посмотреть сообщение
Remove what? and what do we need timer for?
I think you telling us that your server laggs, if yes,
remove this code from onplayerupdate and do this

pawn Код:
forward update();
public update()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
    {
        if(gPlayerLogged[i])
        {
            new string3[64];
            new playername3[MAX_PLAYER_NAME];
            GetPlayerName(i, playername3, sizeof(playername3));
///OTHER CODE HERE
OnGameModeInit put this timer SetTimer("update",3000,true); //this will update every 3 seconds
Reply


Messages In This Thread
Script problem - by RainMultiGaming - 21.12.2011, 14:32
Re: Script problem - by DonWade - 21.12.2011, 14:34
Re: Script problem - by RainMultiGaming - 21.12.2011, 14:42
Re: Script problem - by Unknownich - 21.12.2011, 15:10
Re: Script problem - by Unknownich - 21.12.2011, 15:28
Re: Script problem - by Tee - 21.12.2011, 15:34
Re: Script problem - by RainMultiGaming - 21.12.2011, 16:34

Forum Jump:


Users browsing this thread: 1 Guest(s)