Closed RaphaelCapone closed 5 years ago
Hello, I see that only happens on my Linux server. It uses my all CPU when the server freezes. How can I fix that? Is possible any optimisation to this plugin? I have 1Core CPU and 1GB ram. Thanks..
Does it happen on R19 or R20-RC2?
Yeah, it happens at the last release. I have to say that my server uses 10%+ CPU without YSF plugin(while with YSF 99,99% after few seconds or after using some commands like /spectate(freeze instantly) or /flymode(freezes after few secs)..)
R20-RC2 version Also, I can't try with older versions becouse it gives me errors and crashes(like CreateGang functions or smth like that, I think it's becouse they support older version of samp or idk) On the latest version didn't give any warning/error
If you want I can make a video to show my issue
uh...nevermind, I updated beazones.inc and now it works normally I realize that I need to update an include after watching error logs on R19 version I think you can close the issue for the moment
Hello, my server freezes since I use this plugin when the camera is moving or I think when SetPlayerSpectate or TogglePlayerSpectating functions is activated. Here is an exemple of command that freeze my server after using it:
CMD:spec(playerid, params[]) {
}
Any clues? My server log dosn't print any crash, even if I'm using debugging mode on compile + crashdetect plugin. And yes, I put the last plugin on server.cfg EDIT: I don't think this is the last problem I have to my server after using this plugin... public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) { if(PlayerInfo[playerid][pAdmin] > 0) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, fX, fY, fZ+5); } else { SetPlayerPosFindZ(playerid, fX, fY, fZ+5); } } if(PlayerInfo[playerid][pAdmin] > 0 && AdminDuty[playerid] == 1) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, fX, fY, fZ+5); } else { SetPlayerPosFindZ(playerid, fX, fY, fZ+5); } } if(IsPlayerInAnyVehicle(playerid)) { foreach(Player,i) { if(IsPlayerConnected(i)) { if(IsPlayerInVehicle(i, GetPlayerVehicleID(playerid))) { if(PlayerInfo2[i][pMember] == 15 && PlayerInfo2[playerid][pMember] != 14 || PlayerInfo2[i][pMember] == 12 && PlayerInfo2[playerid][pMember] != 12) { if(TransportDuty[i] == 1) { if(CP[i] > 1 || IsCollectingRubbish[i] > 1 || !IsATruck(GetPlayerVehicleID(i)) || MechanicCallTime[i] > 1 || CheckBus[i] > 1 || GotoMats[i] > 1 || CarJacker[i] > 1) { UsedFind[i] = 0; DisablePlayerCheckpoint(i); DisablePlayerRaceCheckpoint(i); CP[i] = 0; } SetPlayerCheckpoint(i, fX, fY, fZ, 4.0); CP[i] = 43; SCM(i, COLOR_LIGHTBLUE, "Pasagerul tau a ales destinatia dorita, urmeaza checkpoint-ul."); SCM(playerid, COLOR_LIGHTBLUE, "Ai setat locatia, asteapta ca taximetristul sa te duca acolo."); } } } } } } return 1; } Freezes when I teleport on the map...On foot(didn't tested with vehicle) UPDATED: my server crashes after 9-10 seconds...it's really weird :(..