Question about a dialog
#1

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!
Reply
#2

Can we see the Code ?
Reply
#3

Quote:
Originally Posted by Clad
Посмотреть сообщение
Can we see the Code ?
Yeah, sorry I forgot to put it up there for some reason
Reply
#4

Why don't you use this
pawn Код:
if(IsPlayerInRangeOfPoint
Reply
#5

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)