Question about a dialog - 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)
+--- Thread: Question about a dialog (
/showthread.php?tid=523311)
Question about a dialog -
K9IsGodly - 01.07.2014
So I created a dialog for getting crack, but it has one small problem that I don't know how to fix. Basically, when someone enters the 'i' symbol to open the dialog, it continuously appears when they try to exit. I don't know if ProxDetector would help in this case, or if a timer would do the trick (unless there is some other way hence the reason I'm asking here).
Here's the code:
Код:
if(pickupid == CrackPickup)
{
ShowPlayerDialog(playerid,101,DIALOG_STYLE_LIST,""COL_BLUE"You need some crack?",""COL_ORANGE"One gram (20 dollars)\n"COL_ORANGE"Four grams (70 dollars)\n"COL_ORANGE"A quad: Seven grams (130 dollars)\n"COL_ORANGE"Half ounce: 14 grams (250 dollars)\n"COL_ORANGE"Ounce: 28 grams (470 dollars)\n"COL_ORANGE"8 ounces: 226 grams (3400 dollars)\n"COL_ORANGE"Pound: 453 grams (7000 dollars)\n"COL_ORANGE"10 pounds: 4535 (70,000 dollars)\n","Select","Cancel");
}
return 1;
Thanks for any help!
Re : Question about a dialog -
Clad - 01.07.2014
Can we see the Code ?
Re: Re : Question about a dialog -
K9IsGodly - 01.07.2014
Quote:
Originally Posted by Clad
Can we see the Code ?
|
Yeah, sorry I forgot to put it up there for some reason
Re : Question about a dialog -
Clad - 01.07.2014
Why don't you use this
pawn Код:
if(IsPlayerInRangeOfPoint
Re: Re : Question about a dialog -
K9IsGodly - 01.07.2014
Quote:
Originally Posted by Clad
Why don't you use this
pawn Код:
if(IsPlayerInRangeOfPoint
|
Up until this point I didn't notice that I didn't have IsPlayerInRangeOfPoint. Thanks man!