Dialog help
#1

i am stuck here http://pastebin.com/KiSbG96K i seem to get this error

C:\Users\Kyle\Desktop\NFG Freeroam 0.3x\gamemodes\NFG_Freeroam.pwn(269) : error 025: function heading differs from prototype
C:\Users\Kyle\Desktop\NFG Freeroam 0.3x\gamemodes\NFG_Freeroam.pwn(294) : error 030: compound statement not closed at the end of file (started at line 271)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


can you help me
thank you
Reply
#2

Код:
If (response)
{
     Switch (dialogid) // Switching to the correct dialog
     {
          Case 1:
          {
               Switch (listitem) // List Items
               {
                    Case 0:
                    {
                         // Code Placed Here
                    }
                     Case 1:
                     {
                          // Code Placed Here
                     }
               }
          }
     }
}
Reply
#3

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch (dialogid)
    {
        case DIALOG_HELP:
        {
            if (response)
            {
                switch (listitem)
                {
                    case 0:
                    {
                        // code for: /job
                    }
                    case 1:
                    {
                        // code for: /cmd
                    }
                }
            }
            return 1;
        }
    }
    return 0;
}
EDIT: McBan, you had posted an awful code that was not even possible to compile and then edited your post after I posted and you copied-pasted my post, removed the 2 comments..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)