[HUGE PROBLEM] OnGamemodeInit not being called -
milanosie - 04.03.2012
Hey there, I need some quick help,
I restarted my server and from that point stuff that is being loaded at OnGamemodeInit.
For some reason this is with every script I tried, even my own backup scripts.
Also, I tried /makeadmin milan 6 and the response was just "USAGE: /makeadmin [Player][Level]"
Logs for that:
[01:52:49] [LOCAL CHAT] Milan_Huizen, makeadmin
[01:52:52] sscanf error: System not initialised.
pawn Код:
CMD:makeadmin(playerid, params[])
{
new id;
new AdminLevel2;
if(!sscanf(params, "ui", id, AdminLevel2))
{
if(PlayerInfo[playerid][AdminLevel] >= 6 || IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(id))
{
if((AdminLevel2 >= 1 && AdminLevel2 <= 6) || AdminLevel2 == 0)
{
if(isspawned[playerid] == 0) return Kick(playerid);
new string[128];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s promoted %s to Admin Rank %d! Congratz!.", name ,PlayerName, AdminLevel2);
ProxDetector(10000000000.0, playerid, string, COLOR_BLUE, COLOR_BLUE, COLOR_BLUE, COLOR_BLUE, COLOR_BLUE);
format(string, sizeof(string), "You Gave %d Admin Level To %s .", AdminLevel2, PlayerName);
SendClientMessage(playerid, 0xD8D8D8FF, string);
PlayerInfo[id][AdminLevel] = AdminLevel2;
return 1;
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "Avaliable Levels: 1, 2, 3, 4, 5 and 6.");
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "Player is not connected");
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "You Need Rcon Admin To Use This Command!");
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "USAGE: /makeadmin [PlayerId/PartOfName] [AdminLevel]");
}
I think its something in the server software that is fkd up, will re-installing give any solution?
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
milanosie - 04.03.2012
Woah, I also just noticed the interior entrances from singleplayer are back for some reason,
this is inside my ongamemodeinit:
pawn Код:
SetGameModeText("Reality Roleplay V1.94.08 **Unique Script**");
DisableInteriorEnterExits();
But the gamemodetext is "Unknown" and I can still play on the server, but no cars or anything in OnGamemodeInit is loading,
All other stuff IS loading like mapicons (OnPlayerConnect) and stuff.
Please help me out here, I cant find the problem. I was awake from 12 to 5 in the morning trying to fix it, but nothing worked. thanks
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
R0FLC0PTER - 04.03.2012
Well yeah, are you using the plugin version of sscanf?
And next time, please use the edit button, to prevent double posting.
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
iTorran - 04.03.2012
Make sure you have ALL plugins and they are all working.
OnGameModeInit normally gets ignored if there is a missing plugin or so.
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
milanosie - 04.03.2012
MY server log all sais Loaded 3 plugins, MySQL, sscanf and Streamer.
All without errors
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
ricardo178 - 04.03.2012
Your SSCANF is not loading. Happened to me, solution was as simple as download the include and plugin, and compile it again, just like replacing the plugin. By the way, re-install the server.
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
Gforcez - 04.03.2012
Does the MySQL Database Exist?
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
milanosie - 04.03.2012
Quote:
Originally Posted by ricardo178
Your SSCANF is not loading. Happened to me, solution was as simple as download the include and plugin, and compile it again, just like replacing the plugin. By the way, re-install the server.
|
Im doing the restart and plugin, the compiling has nothing to do with it I think since its not just this script, its also my backup scripts that arent working.
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
ricardo178 - 04.03.2012
Quote:
Originally Posted by milanosie
Im doing the restart and plugin, the compiling has nothing to do with it I think since its not just this script, its also my backup scripts that arent working.
|
Yes, all scripts start to stop working... It's something with the plugin, looks like it mess up after some use. LOL.
Re: [HUGE PROBLEM] OnGamemodeInit not being called -
milanosie - 04.03.2012
Ok. did loads of re installs and noticed something weird at the end of this part of the log
Код:
[12:10:27] ===============================
[12:10:27] Loaded.
[12:10:27] Loading plugin: streamer
[12:10:27]
*** Streamer Plugin v2.5.2 by Incognito loaded ***
[12:10:27] Loaded.
[12:10:27] Loaded 2 plugins.
[12:10:27]
[12:10:27] Filterscripts
[12:10:27] ---------------
[12:10:27] Loading filterscript 'maxips.amx'...
[12:10:27]
*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = 3
[12:10:27] Loaded 1 filterscripts.
[12:10:27] OnGameo
[12:10:27]
[12:10:27] =======================================
[12:10:27] | |
[12:10:27] | YSI version 1.03.0011 |
[12:10:27] | By Alex "******" Cole |
[12:10:27] | |
[12:10:27] | Checking the latest YSI version.. |
[12:10:27] | |
[12:10:27] =======================================
[12:10:27]
This line:
[12:10:27] OnGameo
its just that...