Making Ammu-Nation Guns Command
#2

Код:
if {dialogid == 81)
There's a curly bracket. Change it to
Код:
if (dialogid == 81)
Also use a switch statement instead of 9 if statements.
Код:
switch (listitem)
{
    case 0:
    {
         //code
    }
    case 1:
    {
         //code
    }
}
and the same thing for dialog ids. Have a look here: https://sampwiki.blast.hk/wiki/Control_Structures#switch
Reply


Messages In This Thread
Making Ammu-Nation Guns Command - by MiiSha - 12.02.2017, 17:08
Re: Making Ammu-Nation Guns Command - by GoldenLion - 12.02.2017, 17:12
Re: Making Ammu-Nation Guns Command - by MiiSha - 12.02.2017, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)