100 % CPU - 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: 100 % CPU (
/showthread.php?tid=615532)
100 % CPU -
TheDeLeTeCZ - 23.08.2016
Hi,
I have problem with CPU (up to 100% and server lag) it's happens randomly (sometimes 3 times consecutive, sometimes never..) at player connect
i checked infinity cycles. Last script is invoked OnPlayerConnect but gamemode not..
Код HTML:
public OnPlayerConnect(playerid)
{
printf("[ GM ] %s -> Connecting",Player(playerid));
return 1;
}
Please help, thanks.
Re: 100 % CPU -
Lynn - 23.08.2016
Easy solution:
Remove it.
Why does it matter if they're logged to the console or not?
You can just log all the connecting players to a .txt file instead.
Re: 100 % CPU -
PrO.GameR - 23.08.2016
What exactly are you showing here? Are we supposed to trace your CPU usage from this printf?
Run the profiler + crashdetect plugin