Mode: Unknown. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mode: Unknown. (
/showthread.php?tid=180653)
Mode: Unknown. -
Gh0sT_ - 02.10.2010
Ok, so im added some textdraws, and now when i turn server on my mode name is 'Unknown'.
There is OnGameModeInit Callback and serverlog:
http://pastebin.com/ngYaAbxz
Re: Mode: Unknown. -
LarzI - 02.10.2010
What is the definition of 'GMT' ? Please show.
Re: Mode: Unknown. -
Gh0sT_ - 02.10.2010
#define GMT "L-TDM v1.2.7"
Re: Mode: Unknown. -
LarzI - 02.10.2010
Then there's no wonder why this doesn't work..
Just do
pawn Код:
SetGameModeText("L-TDM v1.2.7");
Re: Mode: Unknown. -
Gh0sT_ - 02.10.2010
Bullshit. Its doesnt only set gamemode name to Unknown, but mapname, hostname to server.cfg, not like in define. Im using define, to change it easy.
Re: Mode: Unknown. -
LarzI - 02.10.2010
You can't use define for strings - that's real bullshit.
Either make a global string variable and set it to a string before doing what you want, or just do as I said in the first post.
You're doin' it wrong
Re: Mode: Unknown. -
Gh0sT_ - 02.10.2010
eh, its work 1day back
Re: Mode: Unknown. -
MadeMan - 02.10.2010
Quote:
Originally Posted by LarzI
You can't use define for strings
|
Why not?
Re: Mode: Unknown. -
LarzI - 02.10.2010
Didn't work when I tried..
Then what did you change when it worked, as it's not working anymore.. ?
Re: Mode: Unknown. -
Gforcez - 02.10.2010
Quote:
Originally Posted by LarzI
You can't use define for strings - that's real bullshit.
Either make a global string variable and set it to a string before doing what you want, or just do as I said in the first post.
You're doin' it wrong
|
#define Gamemode "Blank GM"
SetGameModeText(Gamemode);
Thats works, i use it myself >.>