Please 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: Please help (
/showthread.php?tid=142121)
Please help -
Ado111 - 17.04.2010
Hi.I have a big problem in my server.
I have a register and login dialog but i need to have a age and sex dialog can somebody help me
Age dialog like a this
16
17
18
19
20
21
23
24
25
and sex dialog
are you male or female
male
female
to select you need to click on male or female and.......
sory for my bad english im from bosnia
Re: Please help -
Ado111 - 17.04.2010
can somebody do it?please i need this to finish my server
Re: Please help -
DJDhan - 17.04.2010
Hi,
THIS may help you.
Re: Please help -
Ado111 - 17.04.2010
Quote:
Originally Posted by DJDhan
|
yea but can you create what i want please?
Re: Please help -
DJDhan - 17.04.2010
You have the register and login dialog

just copy and edit
Re: Please help -
DJDhan - 17.04.2010
Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST,"What is your age?",16\n17\n18\n19\n20\n21\n22\n23\n24", "Select");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
// We SHOULD use switch(dialogid) with cases, but we're only going to use one dialog in this tutorial.
if(dialogid == 1 && response) // If the dialogid is 1 (our dialog) and they pressed 'Purchase'
{
// We'll use the switch/cases now because we're going to process a few results, not just one. Remember, the first item in the list has id 0.
switch(listitem)
{
case 0:
{
}
case 1:
{
}
case 2:
{
}
}
blablabla
}
return 1;
}
Re: Please help -
Ado111 - 17.04.2010
thanx
Re: Please help -
Ado111 - 17.04.2010
lol it doesnt work?
i compile and its good but that didnt work ingame
Re: Please help -
SpiderPork - 17.04.2010
Quote:
Originally Posted by Ado111
lol it doesnt work?
i compile and its good but that didnt work ingame
|
I bet you just copy-pasted the code he gave you

. You have to edit it to suit your needs.
Re: Please help -
FUNExtreme - 17.04.2010
If you want to script then you can't just copy/paste. You have to look at what you get or .. even better, TRY BY YOURSELF