27.06.2009, 11:36
pawn Код:
if(strcmp(cmd, "//", true) == 0)
{
if(pInfo[playerid][AdminLvl] < 1)
return 0;
new tmp[256];
tmp = strtok(cmdtext, idx);
new AdminName[MAX_PLAYER_NAME], AdminText[128], AdminTextLog[257];
GetPlayerName(playerid,AdminName,sizeof(AdminName));
format(AdminText,sizeof(AdminText),"%s: %s",AdminName,tmp);
SendClientMessageToAdmins(0xA954FFFF,AdminText);
samp_mysql_real_escape_string(AdminText,AdminTextLog);
format(param,128,"AdminChat: %s",AdminTextLog);
LogPlayerCmd(playerid, -1, param, true);
return 1;
}
if i write more than one word, it shows only one word, how to fix?