Question about dialog.
#1

how do you make it like so on a DIALOG_STYLE_INPUT style that on the response that like if you put in box "die" you die?
Reply
#2

You'll need strcmp i think.

Here's an example:
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(dialogid == 1) ///change ID to crrect one in ur script
  {
        if(!strcmp("kill", inputtext, false))
        {
            SendClientMessage(playerid,0xFF8000FF,"You killed yourself using the Dialogue box");
            SetPlayerHealth(playerid,0);
        }
    }
    return 1;
}
Reply
#3

ok i will try that, thanks .
Reply
#4

sağolasın
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)