About OnPlayerUpdate
#1

I'm using OnPlayerUpdate, and the server is using way too much CPU because of it. What can i replace it with? I would need some explanations.

Thanks,

- S
Reply
#2

Depends for what do you want to use it? You could use timer (one second timer) if you don't need to execute the code so fast.
Reply
#3

added the code aswell
Reply
#4

No, no and no. Check this topic - http://forum.sa-mp.com/index.php?topic=115828.0
Reply
#5

That tells me nothing.
Reply
#6

Then read it again.

You're using GF/GF edit which had the name "OnPlayerUpdate" before the 0.2 came out with the native OnPlayerUpdate.
Change this OnPlayerUpdate to something like OnPlayerUpdateEx.
Reply
#7

Just replace

OnPlayerUpdate

With

OnPlayerUpdateEx

That sounds too simple
Reply
#8

Not just the callback name, but every GF's OnPlayerUpdate.
Reply
#9

Don't you have to do anything more than change all the OnPlayerUpdate to OnPlayerUpdateEx?

I mean, it must involve something more than that?
Reply
#10

I don't know why would you save stats anywhere else than under OnPlayerDisconnect anyway ..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)