SA-MP Forums Archive
GameMode = Map - 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: GameMode = Map (/showthread.php?tid=124032)



GameMode = Map - Mechscape - 28.01.2010

Код:
	new GameModeMap[128];
	format(GameModeMap, sizeof(GameModeMap), SCRIPT_MAP);
	SendRconCommand("map" SCRIPT_MAP);
No error's,
// tested, doenst work.

What do it?


Re: GameMode = Map - Correlli - 28.01.2010

pawn Код:
new
    string[48];
format(string, sizeof(string), "mapname %s", SCRIPT_MAP);
SendRconCommand(string);



Re: GameMode = Map - Mechscape - 28.01.2010

Quote:
Originally Posted by Don Correlli
pawn Код:
new
    string[48];
format(string, sizeof(string), "%s", SCRIPT_MAP);
SendRconCommand("mapname %s", string);
Код:
	SendRconCommand("mapname %s", GameModeMap);
Код:
C:\Program Files\SAMP\gamemodes\erp.pwn(223) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.



Re: GameMode = Map - LuxurioN™ - 28.01.2010

Try this:

pawn Код:
new string[48];
format(string, sizeof(string), "mapname %s", SCRIPT_MAP);
SendRconCommand(string);



Re: GameMode = Map - Mechscape - 28.01.2010

Quote:
Originally Posted by © Tђэ LυxυяiσN™
Try this:

pawn Код:
new string[48];
format(string, sizeof(string), "mapname %s", SCRIPT_MAP);
SendRconCommand(string);
Thanks.


Re: GameMode = Map - Correlli - 28.01.2010

My bad, i've edited my post.