Dialog Help
#1

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?
Reply
#2

Fixed!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)