Dialog Help
#1

Heres the Code:
pawn Код:
}
                    case 4:
                    {
                        {
                                new string[128];
                                for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
                                {
                                    if(IsPlayerAttachedObjectSlotUsed(playerid, x)) format(string, sizeof(string), "%s%d (Used)\n", string, x);
                                    else format(string, sizeof(string), "%s%d\n", string, x);
                                }
                                ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, "Toy Editor - Index Selection", string, "Select", "Cancel");
                                return 1;
                            }
                        }
Heres the errors:
pawn Код:
Arko.pwn(8070) : error 029: invalid expression, assumed zero
Arko.pwn(8070) : error 029: invalid expression, assumed zero
Arko.pwn(8070) : warning 215: expression has no effect
Arko.pwn(8070) : warning 215: expression has no effect
Arko.pwn(8070) : warning 215: expression has no effect
Arko.pwn(8070) : warning 215: expression has no effect
Arko.pwn(8070) : warning 215: expression has no effect
Arko.pwn(8070) : warning 215: expression has no effect
Arko.pwn(8070) : error 001: expected token: ";", but found ")"
I'm trying to do it so a dialog leads to a different dialog.The line with the error is the line with showplaydialog.
Reply
#2

pawn Код:
case 4:
                    {
                        {
                                new string[128];
                                for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
                                {
                                    if(IsPlayerAttachedObjectSlotUsed(playerid, x))
                                    {
                                    format(string, sizeof(string), "%s%d (Used)\n", string, x);
                                     }
                                    else
                                    {
                                    format(string, sizeof(string), "%s%d\n", string, x);
                                    ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, "Toy Editor - Index Selection", string, "Select", "Cancel");
                                    }
                                    }
                                return 1;
                            }
                        }
Reply
#3

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
pawn Код:
case 4:
                    {
                        {
                                new string[128];
                                for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
                                {
                                    if(IsPlayerAttachedObjectSlotUsed(playerid, x))
                                    {
                                    format(string, sizeof(string), "%s%d (Used)\n", string, x);
                                     }
                                    else
                                    {
                                    format(string, sizeof(string), "%s%d\n", string, x);
                                    ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, "Toy Editor - Index Selection", string, "Select", "Cancel");
                                    }
                                    }
                                return 1;
                            }
                        }
I get the same erros on this line ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, "Toy Editor - Index Selection", string, "Select", "Cancel");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)