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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Help (/showthread.php?tid=246315)



Dialog Help - iRemix - 03.04.2011

Hello,

If you look at my script, you should see that when you enter the checkpoint it should open a dialog and tell you the;

Organization Name
Organization Type
Organization ID

Thought it doesn't display the name, only the Type and ID.

Here is an image:



Here is my code:

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    for(new i = 0; i < MAX_ORGS; i++)
    {
        if(checkpointid == OrganizationInfo[i][OrganizationPickup])
        {
            format(Message, sizeof(Message), "Organization Name: %s\nOrganization Type: %d\nOrganization ID: %d", OrganizationInfo[i][OrganizationName], OrganizationInfo[i][OrganizationType], OrganizationInfo[i][OrganizationID]);
            ShowPlayerDialog(playerid, ORGANIZATION_DONE, DIALOG_STYLE_MSGBOX, "Organization", Message, "Ok", "Close");
        }
    }
    return 1;
}
Can anyone help?


Re: Dialog Help - iRemix - 03.04.2011

Fixed!