23.04.2009, 20:09
error 021: symbol already defined: "SendRconCommand"
ok i changed everything so i hope it will be easier if people can have a look at this
ok i changed everything so i hope it will be easier if people can have a look at this

pawn Код:
stock ChangeHostName()
{
new HostName = 0
HostName++;
if(HostName > 2)
{
HostName = 0;
}
switch(HostName)
{
case 0: format(string, sizeof(string), "hostname %s", HOSTNAME1);
case 1: format(string, sizeof(string), "hostname %s", HOSTNAME2);
case 2: format(string, sizeof(string), "hostname %s", HOSTNAME3);
}
SendRconCommand(string);
}