Jump to content
  • 0

Question

Posted (edited)

salut, am decis sa fac un dialog pentru event gen categorii  ideia ca vreau sa fac un string un text tip event si bani $ ideia este ca nu îmi vin idei cum sa fac sa fie bine  sa pot sa transmit textul dorit si bani .

poza cu dialogul https://imgur.com/a/M0eAKef

case DIALOG_Event: {
            if(!response) return 1;
            switch(listitem) {
                case 0: {
                    new szDescription[1050], szSecondParam[1050];
                    if (Event_Prize)  return SendClientMessage(playerid, COLOR_DARKGRAY, "There is already an event on going.");
                    new  szPrize;
                    if (isnull(szSecondParam) || sscanf(szSecondParam, "p< >s[16]i", szDescription, szPrize))  return SendClientMessage(playerid, 0x5B88CCFF, "Usage: {E6E6DC}/event create [description] [prize]");
                    if (szPrize < 5000 || szPrize > 1000000) return SendClientMessage(playerid, COLOR_DARKGRAY, "The prize can't be lower than $5,000 or higher than $1,000,000.");
                    SendEventMessage(0xA2E261FF, sprintf("[EVENT]: Admin %s created an event. Description: %s, Reward: $%s. Type /joinevent to join it !", GetName(playerid), szDescription, FormatNumber(szPrize)));
                    ShowPlayerDialog(playerid, DIALOG_Event, DIALOG_STYLE_TABLIST_HEADERS, "FiveGame Event", szSecondParam, "Select", "Exit"); 

                }
                case 1: {

                }
                case 2: {

                }                                                                      
                   
            }
        }

 

Edited by Geani

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

3 answers to this question

Recommended Posts

  • 0
Posted

ma bucur :)) up

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted

c/t Am rezolvat si fara voii multumesc orcum !:)

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.