Dialog help
#4

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);
             }
        ..........
Reply


Messages In This Thread
Dialog help - by mahdi499 - 04.05.2013, 15:29
Re: Dialog help - by RajatPawar - 04.05.2013, 15:34
Re: Dialog help - by mahdi499 - 04.05.2013, 15:37
Re: Dialog help - by RajatPawar - 04.05.2013, 15:41

Forum Jump:


Users browsing this thread: 1 Guest(s)