Unknown gamemode. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Unknown gamemode. (
/showthread.php?tid=645628)
Unknown gamemode. -
ValueA - 30.11.2017
When I run my own script, It says the game mode is unknown but everything fine,
I got this in my server log.
[15:37:51] SUCCESS: Connected To MySQL!
[15:37:51] Connected to MySQL werd up.
Re: Unknown gamemode. -
RageCraftLV - 30.11.2017
Show us the full server.log.
Re: Unknown gamemode. -
R4nd4ll - 30.11.2017
If everything is fine IG (the script is loaded successfully)
Then add this to your OnGameModeInIt :
Код:
public OnGameModeInIt
{
SendRconCommand("gamemode XXXXXX"); //Change the XXXXXX to your desired name
}
Re: Unknown gamemode. -
Dayrion - 30.11.2017
Quote:
Originally Posted by R4nd4ll
If everything is fine IG (the script is loaded successfully)
Then add this to your OnGameModeInIt :
Код:
public OnGameModeInIt
{
SendRconCommand("gamemode XXXXXX"); //Change the XXXXXX to your desired name
}
|
That should be configured inside server.cfg in first instance.
Re: Unknown gamemode. -
ThePhenix - 30.11.2017
Quote:
Originally Posted by R4nd4ll
If everything is fine IG (the script is loaded successfully)
Then add this to your OnGameModeInIt :
Код:
public OnGameModeInIt
{
SendRconCommand("gamemode XXXXXX"); //Change the XXXXXX to your desired name
}
|
I think you're confused with:
PHP код:
SendRconCommand("hostname My SA-MP server");
SetGameModeText("SA-MP 1.0");