27.12.2011, 20:23
I'm a bit confused by your code, because I'm not exactly sure what you're trying to do. I think I got it though:
pawn Код:
CMD:setupdate(playerid,params[])
{
new text[65];
if(!IsPlayerAdmin(playerid))
return 0;
if(sscanf(params,"s[64]",text))
return SendHelpMessage(playerid,"/setupdate <text>","It will set the server name.");
new string[100];
format(string, sizeof(string), "hostname [0.3d]L.A. Noire RPG Cops and Robbers version %s", text);
SendRconCommand(string);
return 1;
}