Dialog Giving me errors
#1

pawn Код:
if(dialogid == DIALOGTUTORIAL)
    {
        if(response)
        {
            SendClientMessage(playerid, COLOR_WHITE, " TEXT HERE");
            PlayerInfo[playerid][pNewPlayer] = 2;
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, " TEXT HERE.");
            Kick(playerid);
        }
    )
When I add this, to OnDialogResponse it gives me tons of errors, but if I delete it, it complies fine. I don't get why.
I've tried removing the info in else and below, and still wont work. It's very irritating.
where it says, TEXT HERE I have different text.
I have the correct #defines as-well.
Im Using MSGBOX Dialog.
Reply
#2

pawn Код:
if(dialogid == DIALOGTUTORIAL)
    {
        if(response)
        {
            SendClientMessage(playerid, COLOR_WHITE, " TEXT HERE");
            PlayerInfo[playerid][pNewPlayer] = 2;
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, " TEXT HERE.");
            Kick(playerid);
        }
    }
Try that
Reply
#3

What did you change?....
Reply
#4

Nothing, lol, he's probably a troll.

Based on my experiences, sometimes other codes can cause errors, but the pawn compiler will think that another line near it is the error.

So, look around for any missing ";" or brackets.
Reply
#5

Lynn, he changed the last bracket to a brace.
Reply
#6

Oh wow... I feel retarded. Thanks for pointing that out xD
Reply
#7

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
Lynn, he changed the last bracket to a brace.
I didn't even notice that and I examined it for like 3 minutes.
Reply
#8

Quote:
Originally Posted by Sledge
Посмотреть сообщение
I didn't even notice that and I examined it for like 3 minutes.
So learn a lesson and don't call someone a troll for no reason.
Reply
#9

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
So learn a lesson and don't call someone a troll for no reason.
The reason I called him a troll was because to both me and the OP he posted the same exact code as the one the OP posted. We both thought it was a troll until another user pointed out our mistakes. I then admitted my mistakes. Then some asshole decided to take advantage of my mistake and repost in this thread that should not have ever been posted in again. I do not forgive this asshole.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)