04.05.2013, 08:32
Quote:
Change text [1] to text if you don't want that / to come then do text[0] = ' '; then do format with text.Its fixed.
text[1] will give only the 2nd character of the string not the whole string from 2nd character. Код:
text[0] = ' '; format(string,sizeof(string),"**%s(%d) has typed %s",pName,playerid,text); |
PHP код:
if (text[0] == ' ')
{
new CMDMessage[128];
GetPlayerName(playerid, CMDMessage, MAX_PLAYER_NAME);
format(CMDMessage , sizeof CMDMessage, "*__* %s[%d] Has Typed: %s" ,GetName(playerid), playerid, text);
SendAdminMessage(COLOR_GREY, CMDMessage);
return 1;
}