Making Ammu-Nation Guns Command
#1

Edit : FIXED
Reply
#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
#3

OMG I must be blind !!!
Thanks, and I was using the switch but when I got the problem I used if statements just to make sure where the problem is. I4m gonna reuse the switch
Thanks. Rep+ !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)