YCMD help
#1

here is the code

http://pastebin.com/mYFXKjKS

i forgot how to do pawn code here


but im having trouble closing it it works all when i open them before i added this all worked /fdbay 1 /fdbay 2 /fdbay 3 and /fdbay 4
but after i added this it wont work only /fdbay 1 opens the first garage door and /fdbay 2 closes the first fd garage any help?

Код:
        }
        else
        {
             MoveDynamicObject(fdbay1, -2193.5600000,-2346.2300000,31.0300000, 0.7, 0.0000000,0.0000000,-39.0000000);//closed gate
Reply
#2

pawn Код:
//change

if(!strcmp(params, "2", true))

//to

else if(!strcmp(params, "2", true))

//and

if(!strcmp(params, "3", true))

//to

else if(!strcmp(params, "3", true))
Reply
#3

Ok i think i have done that tested it and it opens them correctly but when i do /fdbay 1 again bay 1 wont close same for the others

http://pastebin.com/CmJF4ERS
Reply
#4

Any one have an idea?
Reply
#5

You need to make difference between the "1" to open and "1"to close. Change it to "o1" and "c1"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)