OnDialogResponse Errors
#1

Hey i need help with these errors, I suck soo much with dialogs and would appreciate help!!

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
  switch(dialogid)
    {
        case teleports:// Our dialog!
        {
            switch(listitem)// Checking which listitem was selected
            {
                case: 0
                {
                    return cmd_stunts(playerid,params);
                }
                case: 1
                {
                    return cmd_deathmatches(playerid,params);
                }
                case: 2
                {
                    return cmd_parkours(playerid,params);
                }
                case: 3
                {
                    return cmd_roleplays(playerid,params);
                }
            }
        }
    return 1;
}
ERRORS:


C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7310) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7310 -- 7311) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7312) : error 017: undefined symbol "params"
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7314) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7314 -- 7315) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7316) : error 017: undefined symbol "params"
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(731 : warning 217: loose indentation
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(731 : error 014: invalid statement; not in switch
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(731 : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7318 -- 7319) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7318 -- 7319) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Reply
#2

Try this, sorry about the indentation.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
        switch(dialogid)
        {
            case teleports:// Our dialog!
            {
                switch(listitem)// Checking which listitem was selected
                {
                    case 0:
                    {
                    return cmd_stunts(playerid, "");
                    }
                    case 1:
                    {
                    return cmd_deathmatches(playerid, "");
                    }
                    case 2:
                    {
                    return cmd_parkours(playerid, "");
                    }
                    case 3:
                    {
                    return cmd_roleplays(playerid, "");
                    }
                }
            }
        }
    }

    return 1;
}
Reply
#3

Quote:
Originally Posted by Alureon
Посмотреть сообщение
Try this, sorry about the indentation.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
        switch(dialogid)
        {
            case teleports:// Our dialog!
            {
                switch(listitem)// Checking which listitem was selected
                {
                    case 0:
                    {
                    return cmd_stunts(playerid, "");
                    }
                    case 1:
                    {
                    return cmd_deathmatches(playerid, "");
                    }
                    case 2:
                    {
                    return cmd_parkours(playerid, "");
                    }
                    case 3:
                    {
                    return cmd_roleplays(playerid, "");
                    }
                }
            }
        }
    }

    return 1;
}
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7312) : error 035: argument type mismatch (argument 2)
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7316) : error 035: argument type mismatch (argument 2)
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7320) : error 035: argument type mismatch (argument 2)
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7324) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

Lines?
Reply
#5

Quote:
Originally Posted by Alureon
Посмотреть сообщение
Lines?
its the return cmd_stunts(playerid, ""); all of em...
Reply
#6

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
      if(dialogid == teleports)
        {
if(response)
{        
   switch(listitem)// Checking which listitem was selected
            {
                case: 0
                {
                    return cmd_stunts(playerid,params);
                }
                case: 1
                {
                    return cmd_deathmatches(playerid,params);
                }
                case: 2
                {
                    return cmd_parkours(playerid,params);
                }
                case: 3
                {
                    return cmd_roleplays(playerid,params);
                }
            }
        }

    return 1;
}
Reply
#7

What command processor are you using?
Reply
#8

Quote:
Originally Posted by Alureon
Посмотреть сообщение
What command processor are you using?
i am using ZCMD
Reply
#9

itried to help you but you are ignoring me you will be ignorant to my face too
Reply
#10

Quote:
Originally Posted by vassilis
Посмотреть сообщение
itried to help you but you are ignoring me you will be ignorant to my face too
Hey chill the fuck out I just saw your post, it wont work the error will say Undefined symbol params
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)