[Please Help] GameMode Text - 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: [Please Help] GameMode Text (
/showthread.php?tid=106865)
[Please Help] GameMode Text -
Nameless303 - 06.11.2009
In my GM i've got a variable called MiniWar, when it's 1 I wan't to display "World War" As gamemode text, if it's 2 I wan't to have "Tank War" as GM text...
This is what i've got;
Код:
new WarName[48];
if(MiniWar == 1)
{
WarName = "World War";
}
else if(MiniWar == 2)
{
WarName = "World War";
}
new string[48];
format(string, sizeof(string), "%s", WarName);
SetGameModeText(string);
It compiles without errors, but it doesn't show the GM text...
What am i doing wrong?
Thanks (:
EDIT: when I use it the server doesn't responds...
Re: [Please Help] GameMode Text -
dice7 - 06.11.2009
pawn Код:
format(WarName, sizeof(WarName), "World War");