GameMode = Map
#1

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

What do it?
Reply
#2

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

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.
Reply
#4

Try this:

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

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.
Reply
#6

My bad, i've edited my post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)