20.03.2014, 19:44
I've been trying everything.
But when I do /makeadmin, or /createobj, or w/e.
Server crashes.
I firstly requived messages in my server.log.
A few hundred of them.
Then I updated it, and they were gone. (Also the objects are now being created IG)
Well, Now.. By doing /makemapper, or w/e. The server crashes. I cant actually do any cmd, nor create any obj.
The makemapper cmd, if it might help a bit.
I really hope somebody can help me out.
But when I do /makeadmin, or /createobj, or w/e.
Server crashes.
I firstly requived messages in my server.log.
Код:
[00:52:27] *** CreateDynamicObject: Expecting 11 parameter(s), but found 12
Then I updated it, and they were gone. (Also the objects are now being created IG)
Well, Now.. By doing /makemapper, or w/e. The server crashes. I cant actually do any cmd, nor create any obj.
The makemapper cmd, if it might help a bit.
Код:
CMD:makemapper(playerid, params[]) { if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pAdmin] >= 8 || PlayerInfo[playerid][pMapper] >= 5) { new playerb, admin, string[128], string2[128]; if(sscanf(params, "ui", playerb, admin)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /makemapper [playerid] [level]"); if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id."); if(admin < 0 || admin > 5) return SendClientMessage(playerid, COLOR_GREY, "Mapper levels are between 1 and 5."); if(PlayerInfo[playerb][pMapper] != admin) { new log[256]; if(PlayerInfo[playerb][pMapper] < admin) { format(string, sizeof(string), "AdmWarn: %s has {33AA33}promoted {AA3333}%s to level {33AA33}%d {AA3333}Mapper.", RPN(playerid), RPN(playerb), admin); format(string2, sizeof(string2), "MapperWarn: %s has {33AA33}promoted {AA3333}%s to level {33AA33}%d {AA3333}Mapper.", RPN(playerid), RPN(playerb), admin); format(log, sizeof(log), "AdmWarn: %s (%s) has promoted %s (%s) to level %d Mapper.", RPN(playerid), RPIP(playerid), RPN(playerb), RPIP(playerb), admin); } else if(PlayerInfo[playerb][pMapper] > admin) { format(string, sizeof(string), "AdmWarn: %s has {FF9900}demoted {AA3333}%s to level {FF9900}%d {AA3333}Mapper.", RPN(playerid), RPN(playerb), admin); format(string2, sizeof(string2), "MapperWarn: %s has {FF9900}demoted {AA3333}%s to level {FF9900}%d {AA3333}Mapper.", RPN(playerid), RPN(playerb), admin); format(log, sizeof(log), "AdmWarn: %s (%s) has demoted %s (%s) to level %d Mapper.", RPN(playerid), RPIP(playerid), RPN(playerb), RPIP(playerb), admin); } Log("logs/makehelper.log", log); PlayerInfo[playerb][pMapper] = admin; SendAdminMessage(COLOR_DARKRED, 1, string); SendMapperMessage(COLOR_DARKRED, 1, string2); if(!PlayerInfo[playerb][pMapper]) { SendClientMessage(playerb, COLOR_DARKRED, string2); } } else SendClientMessage(playerid, COLOR_GREY, "Player already has this Mapper level."); } else { SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); } return 1; }