Server restarting on /makeadmin
#1

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.
Reply
#2

Thats not the volt host problem thats your script problem makesure all your plugins are loaded and show us your /makeadmin command.
Reply
#3

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;
}
Reply
#4

Stop cross-posting and contact their support !
Reply
#5

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...
Reply
#6

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
Reply
#7

bump
Reply
#8

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.
Reply
#9

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
Reply
#10

try to use luxadmin system is the best admin system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)