04.05.2013, 15:41
I suggested what I did, because, you can never guess what the player is going to enter. An admin's name may be "H[o]" but he might enter "Talk to h[o]" or "HO" which basically would return him an error. But anyways, you can use:
pawn Код:
if(dialogid == REPORT_TALK)
{ new name[24];
foreach( new i:Player )
{ GetPlayerName(i, name, 24);
if(strcmp(inputtext, name, true) == 0)
{
new preport[128];
format(preport, sizeof(preport), "[PRIVATE-REPORT]%s would like to talk to you", GetPlayerNameEx(playerid));
SendClientMessage(i, -1, preport);
}
..........