24.07.2012, 09:23
Hello
Server keep restarting im host from volt-host and when im support ticket volt-host said to me this text and tell me if u have any thing OnPlayerUpdate tell him or fix it
What the problem here ?
sorry for my bad english
Server keep restarting im host from volt-host and when im support ticket volt-host said to me this text and tell me if u have any thing OnPlayerUpdate tell him or fix it
Код:
If your server is being restarted due to high CPU. Check to see whether its just "spikes" or its consistently high CPU all the time. Check if the amount of players makes a difference and subtle things such as this then review your script for inefficient code or things like loops that never end or code under OnPlayerUpdate that puts a tremendous strain on the CPU. There are alot of factors in which your server must be restarted but it is necessary as your server can hang and can cause problems for other servers on the node.
What the problem here ?
pawn Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid))
if(SInfo[playerid][pAdmin] >= 1)
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) //Checking if he has a Minigun
{
ResetPlayerWeapons(playerid);
new name[MAX_PLAYER_NAME], string[254];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{00FF22}Rachel: %s Has Been BANNED from the Server - Cheats Detected", name);
SendClientMessageToAll(GREEN, string);
Ban(playerid);
}
return 1;
}