Server_Name
#1

Ok i tried
Код:
#define SERVER_NAME	"••• Violated Roleplay •••"
It doesnt work?
Reply
#2

Give us the rest of the code? Where you use the SERVER_NAME.
Reply
#3

At the beginning
What do you mean the rest of the code? Is there suppose to be more for it?
Код:
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#include <a_npc>
#include <streamer>

static gTeam[MAX_PLAYERS];

//===============================[MAIN SETTINGS]================================================
#define SERVER_NAME "Violated Roleplay" // This is what the hostname/servername will be set to.
#define Version "4.8" // Script Version
//==============================================================================================
Reply
#4

under OnGameModeInit add this:
pawn Код:
SendRconCommand("hostname "SERVER_NAME);
Or just set hostname in server.cfg.
Reply
#5

Ok, No i cant use bullets in "server.cfg" lol
Reply
#6

Quote:
Originally Posted by Sergei
Посмотреть сообщение
under OnGameModeInit add this:
pawn Код:
SendRconCommand("hostname "SERVER_NAME);
Or just set hostname in server.cfg.
Would it not be

pawn Код:
SendRconCommand("hostname SERVER_NAME");
intead of:
pawn Код:
SendRconCommand("hostname "SERVER_NAME);
Reply
#7

Lol, bullets in the server cfg? wtf is that? :P
Reply
#8

Quote:
Originally Posted by [DK]JaloNik
Посмотреть сообщение
Lol, bullets in the server cfg? wtf is that? :P
Ok in server.cfg you hostname can look like this: Violated Roleplay
With it being in the gamemode it can look like this: ••• Violated Roleplay •••
Reply
#9

pawn Код:
new SendCommand[128]; // I don't want to count the letters, do it yourself
format(SendCommand, sizeof(SendCommand), "hostname %s", SERVER_NAME); // Format the command into a string.
SendRconCommand(SendCommand); // Execute the command through Rcon.
Reply
#10

pawn Код:
SendRconCommand("hostname " #SERVER_NAME "");
That should work fine.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)