Can i put OnPlayerUpdate on my GM? Coz my GM dont have it!
#1

So as shown on my previous thread, my server is lagging, players have paused sign on their head but in their screen they are moving! They said that the problem is on that "ONPLAYERUPDATE"! But how do this GM been released if it is has no onplayerupdate? And this server lag would come? If really that onplayerupdate is the solution, can you explain it to me? And pls give download link too!

I WANT TO FIX THIS ERROR IN MY SERVER!! MY GAMEMOD IS MOST WANTED COPS AND ROBBERS!
Reply
#2

i think you have some timers that are too fast and/or loops that are infinetly long so that the server gets stuck on them.
Reply
#3

So u mean that LSCNR and MWCNR GM has problems on looping? Bcoz b4 i used Lscnr by karagon ang hosted online! But people ar paused thats why i changed my GM! But n0w! Still the same problem is here!
Reply
#4

Put this on your gamemode:
Quote:

public OnPlayerUpdate(playerid)
{
return 1;
}

OnPlayerUpdate return Values:
0 - Update from this player will not be replicated to other clients.
1 - Indicates that this update can be processed normally and sent to other players.

So if you don't have this callback that returns 1 on your gamemode, the clients update won't be processed and sent to other players. I hope this solves your problem.
Reply
#5

maybe the internet connection of the server isn't good enough or is the problem also with just 3 or 4 players.
Reply
#6

The grammar is hurting my eyes!
Reply
#7

Quote:
Originally Posted by Koala818
Посмотреть сообщение
Put this on your gamemode:

pawn Код:
public OnPlayerUpdate(playerid)
{
     return 1;
}
OnPlayerUpdate return Values:
0 - Update from this player will not be replicated to other clients.
1 - Indicates that this update can be processed normally and sent to other players.

So if you don't have this callback that returns 1 on your gamemode, the clients update won't be processed and sent to other players. I hope this solves your problem.
don't thought about that so try this first
Reply
#8

Ok i will try to put that OnPlayerUpdate to my gamemode!

But can someone explain me what is OnPlayerUpdate? Why do this needed to be in ur gamemode? And why this gamemode MWCNR doesn't have that thing on its package when i donwload it!
Reply
#9

onplayerupdate is something to update the gamemode every second, by an other meaning if you deleted it you will not be able to see the player moving and you will see him paused .
Reply
#10

I didn't delete it. The GM that i d0wnloaded doesn't have it, try to see Most Wanted CnR GM and check it what is wrong in that!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)