ZCMD Problem
#3

I have a problem..


I tried to do that:
PHP код:
CMD:server(playerid,params[])
{
if(
GetPVarInt(playerid,"AdminLvl") < 20) return 0;
if(
isnull(params)) 
return 
SendClientMessage(playerid,COLOR_WHITE,"Usage: /Server <Name/Gmx>");
if(!
strcmp(params,"Name",true))
{
new 
string[128];
if(
isnull(params)) return SendClientMessage(playerid,COLOR_RED,"Usage: /Server <Name> <ServerName>");
format(string,128,"The server name was changed to %s",params);
SendClientMessage(playerid,COLOR_RED,string);
format(string,128,"hostname %s",params);
SendRconCommand(string);
return 
1;
}
return 
1;

Problem is that it changes the name to "Name"
Reply


Messages In This Thread
ZCMD Problem - by NeyMar96 - 23.07.2011, 04:22
Re: ZCMD Problem - by JaTochNietDan - 23.07.2011, 04:25
Re: ZCMD Problem - by NeyMar96 - 23.07.2011, 04:32
Re: ZCMD Problem - by Kwarde - 23.07.2011, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)