• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Adding dialog box for event
#2
So, basically, you just need to create another dialog ID with DIALOG STYLE INPUT, One for the title, one for the reasons.



Store the Title input text to a variable, then, trigger a new dialog id and similar stuff like other dialogs you have attached here.



For example

So, basically, you just need to create another dialog ID with DIALOG STYLE INPUT, One for the title, one for the reasons.



Store the Title input text to a variable, then, trigger a new dialog id and similar stuff like other dialogs you have attached here.



For example



PHP Code:
if(dialogid == (Place a unused ID)

{

if(!
response)return 1;



if(
strlen(inputtext)>=21||strlen(inputtext)<=2)return ShowPlayerDialog(playerid,5010,DIALOG_STYLE_INPUT,"{FF0000}* Enter a title between 3 to 20 characters.\n{A9C4E4}Request an Event","Enter the title of event below","Done","Close");

? ? 
strcpy(ReqTitle[playerid],inputtext,30);

ShowPlayerDialog(playerid,(Place a unused IDmust be same.),DIALOG_STYLE_INPUT,"Rules of the event","Rules:","Done","Close");


Lead developer of San Andreas Roleplay (RIP SARP)

2015-2021 SA-MP Era Developer.
  Reply


Messages In This Thread
Adding dialog box for event - by jenab - 2020-12-21, 10:18 PM
RE: Adding dialog box for event - by Golden - 2020-12-26, 04:54 PM
RE: Adding dialog box for event - by Pinch - 2020-12-26, 05:21 PM

Forum Jump: