SA-MP Forums Archive
Dialog Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Help (/showthread.php?tid=401095)



Dialog Help - arko123 - 21.12.2012

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.


Re: Dialog Help - DaRk_RaiN - 21.12.2012

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;
                            }
                        }



Re: Dialog Help - arko123 - 21.12.2012

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");