12.08.2012, 19:54
Hello.
I have made two commands but i can just type like 5-10 words in them is it becuase string[56]?
I have made two commands but i can just type like 5-10 words in them is it becuase string[56]?
PHP код:
CMD:adm(playerid, params[])
{
if(pInfo[playerid][pAdmin] < 1) return 0;
new sendername[MAX_PLAYER_NAME], string[56];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error.Correct usage: /adm [text]");
format(string, sizeof(string), "((Server Action: %s %s ))", sendername, params);
SendClientMessageToAll(0xFF0000C8, string);
return 1;
}
CMD:ooc(playerid, params[])
{
new sendername[MAX_PLAYER_NAME], string[56];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error.Correct usage: /ooc [text]");
format(string, sizeof(string), "(( %s: %s ))", sendername, params);
SendClientMessageToAll(0xffcc00FF, string);
return 1;
}