Help with Define
#1

How would I make it define servername?

Код:
#define servername Garcia
Doesn't work.

Код:
SetGameModeText("%s Roleplay", servername);
I want it to work with this code.
Reply
#2

Код:
#define servername "Garcia"
Reply
#3

Код:
SetGameModeText("%s Roleplay", servername);
I got an error:

Код:
C:\Users\Owner\Desktop\Blank RP\gamemodes\blankrp.pwn(14) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#4

Код:
new string[128]; // Change size as you please.
format(string, sizeof(string), "%s Roleplay", servername);
SetGameModeText(string);
Remember to format your strings...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)