24.07.2018, 19:43
hello, I decided to make an event for categories like the idea that I want to make a tip like an event and money text. The idea is that I do not have ideas how to make it good to convey the desired text and money.
picture with dialogue https://imgur.com/a/M0eAKef
picture with dialogue https://imgur.com/a/M0eAKef
Код HTML:
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: { } } }