Wierd. - 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: Wierd. (
/showthread.php?tid=338846)
Wierd. -
HighPitchedVoice - 01.05.2012
Look here, my command is not working properly;
pawn Код:
if(strcmp(cmd, "/weapontraining", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5,300.5705,-134.0464,1004.0625))
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_LIST,"Weapon Training","Desert Eagle\nPump Shotgun\nSawn Off\nCombat Shotgun\nUzi\nMP5\nAK-47\nM4A1\n","Buy!", "Exit");
}
return 1;
}
The selection for the desert eagle does not exist in the dialog - When I select AK it says Uzi and when I select M4A1 it says MP5, some help please?
By the way, can you make a timer of the command being typed, it should be 200 seconds.
Re: Wierd. -
newbienoob - 01.05.2012
Show me your OnDialogResponse
Re: Wierd. -
HighPitchedVoice - 01.05.2012
Ops, I did it abit wrong but I got it working now again, I just need the timer now.
Re: Wierd. -
HighPitchedVoice - 01.05.2012
Would it be like this?;
pawn Код:
SetTimerEx(playerid, 20000));
Re: Wierd. -
Mark™ - 01.05.2012
Quote:
Originally Posted by HighPitchedVoice
Would it be like this?;
pawn Код:
SetTimerEx(playerid, 20000));
|
https://sampwiki.blast.hk/wiki/SetTimerEx