OnPlayerDialogResponse Error, Pleeaaaseeee Help!!!
#1

Problem Solved, Delete it please
Reply
#2

Because of your horrible way of indenting your code, you misplaced your braces.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == 4)
    {
        if (response)
        {
            SendClientMessage(playerid,0x008000FF, "You accepted the rules, Make sure you follow them!");
        }
        else
        {
            SendClientMessage(playerid,0xFF0000FF, "Oh you don't agree? pwned!!");
            Kick(playerid);
        }
    }
    else if (dialogid == 1)
    {
        if (response)
        {
            SendClientMessage(playerid,0x008000FF, "You Pressed Ok");
        }
        else
        {
            SendClientMessage(playerid,0xFF0000FF, "You Closed The Commands Menu");
            Kick(playerid);
        }
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by [NoV]LaZ
Посмотреть сообщение
Because of your horrible way of indenting your code, you misplaced your braces.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == 4)
    {
        if (response)
        {
            SendClientMessage(playerid,0x008000FF, "You accepted the rules, Make sure you follow them!");
        }
        else
        {
            SendClientMessage(playerid,0xFF0000FF, "Oh you don't agree? pwned!!");
            Kick(playerid);
        }
    }
    else if (dialogid == 1)
    {
        if (response)
        {
            SendClientMessage(playerid,0x008000FF, "You Pressed Ok");
        }
        else
        {
            SendClientMessage(playerid,0xFF0000FF, "You Closed The Commands Menu");
            Kick(playerid);
        }
    }
    return 1;
}
Thanks it works and btw it's not my horrible way of indenting the code /quote fucked it up anyways thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)