Server restarting on /makeadmin -
Strech - 14.08.2012
Guys.After i make someone admin on my server which is volt hosted,it restarts the server.Please helpme out...
Restarted (Excessive CPU Usage - 98.2%) - On logs.
Re: [REP+]Volt Restarting on /makeadmin -
Dare Devil..... - 14.08.2012
Thats not the volt host problem thats your script problem makesure all your plugins are loaded and show us your /makeadmin command.
Re: [REP+]Volt Restarting on /makeadmin -
Strech - 14.08.2012
Quote:
Originally Posted by Dare Devil.....
Thats not the volt host problem thats your script problem makesure all your plugins are loaded and show us your /makeadmin command.
|
pawn Код:
CMD:makeadmin(playerid, params[]) {
if(PlayerInfo[playerid][pAdmin] >= 100004) {
new
iAdminValue,
iTargetID;
if(sscanf(params, "ui", iTargetID, iAdminValue)) {
SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /makeadmin [playerid] [level]");
}
else if(IsPlayerConnected(iTargetID)) {
if(PlayerInfo[iTargetID][pHelper] >= 1) {
SendClientMessageEx(playerid, COLOR_GRAD1, "You cannot make Community Helpers admins!");
}
else {
new
szMessage[47 + (MAX_PLAYER_NAME * 2)];
PlayerInfo[iTargetID][pAdmin] = iAdminValue;
format(szMessage, sizeof(szMessage), "AdmCmd: %s has promoted %s to a level %d admin.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID), iAdminValue);
ABroadCast(COLOR_LIGHTRED,szMessage, 2);
format(szMessage, sizeof(szMessage), "You have been promoted to a level %d admin by %s.", iAdminValue, GetPlayerNameEx(playerid));
SendClientMessageEx(iTargetID, COLOR_LIGHTBLUE, szMessage);
format(szMessage, sizeof(szMessage), "You have promoted %s to a level %d admin.", GetPlayerNameEx(iTargetID),iAdminValue);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, szMessage);
}
}
else SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid player specified.");
}
else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
return 1;
}
Re: [REP+]Volt Restarting on /makeadmin -
Mark™ - 14.08.2012
Stop cross-posting and contact their support !
Re: [REP+]Volt Restarting on /makeadmin -
Strech - 14.08.2012
Quote:
Originally Posted by Xtreme_playa
Stop cross-posting and contact their support !
|
I am asking here because people have experienced these problems some of them.And might helpme genius...
Re: [REP+]Volt Restarting on /makeadmin -
Mark™ - 14.08.2012
Quote:
Originally Posted by Strech
I am asking here because people have experienced these problems some of them.And might helpme genius...
|
Read this, "genius" :
https://sampforum.blast.hk/showthread.php?tid=349089
Re: [REP+]Volt Restarting on /makeadmin -
Strech - 14.08.2012
bump
Re: [REP+]Volt Restarting on /makeadmin -
kaisersouse - 14.08.2012
Alright everyone chill out
1) Starting a thread w/ "Volt" in it usually gets people (myself included) a bit annoyed
2) You did the right thing by posting your command
3) Xtreme go get some sun or something and calm down

4) Strech don't bump threads
Also, make sure your sscanf function is up to date.
Re: Server restarting on /makeadmin -
Cena44 - 15.08.2012
so... you using zGaming roleplay script?
if yes, please create these folders in your "Scriptfiles" folder
"users"
"factions"
"logs"
NO caps, just to make sure they work correctly
Re: Server restarting on /makeadmin -
GREEKMODER - 15.08.2012
try to use luxadmin system is the best admin system