[MAP] Automatic gate

Started by MatheuS, Dec 13, 2014, 06:41 AM

Previous topic - Next topic

Decent_946

Quote from: NE.CrystalBlue on May 12, 2015, 12:30 PMonServerStart is executed before onScriptLoad so that variable would not be initialized. I suggest you to take "gateStatus <- ..." to onServerStart and above the line that error is occurring.
well i did that, again same error occurs.. just number of line changed.. :/
Quote from: NE.CrystalBlue on May 12, 2015, 12:30 PMP.S. Nice editor! If its like Atom, pressing CTRL + [Arrow up] will move a line
thankx!! and the key CTRL + SHIFT + [ARROW UP]     Worked for me!! ;)

.

#16
@DeCeNt_BoY This is off-topic but press Control+Shift+P inside Sublime Text and then type SSD (case insensitive) and then hit enter. Trust me, it'll be an improvement on syntax highlighting ;)

Quote from: NE.CrystalBlue on May 12, 2015, 12:30 PMP.S. Nice editor! If its like Atom, pressing CTRL + [Arrow up] will move a line.

Same thing works in Notepad++ too ;)
.

EK.IceFlake

Quote from: DeCeNt_BoY on May 12, 2015, 01:23 PM
Quote from: NE.CrystalBlue on May 12, 2015, 12:30 PMonServerStart is executed before onScriptLoad so that variable would not be initialized. I suggest you to take "gateStatus <- ..." to onServerStart and above the line that error is occurring.
well i did that, again same error occurs.. just number of line changed.. :/
Well... Did you put that dude above* that line?

Decent_946


MacTavish

Simply put everthing in onScriptLoad()

function onScriptLoad()
{
 gateStatus <- array( GetMaxPlayers(), null );
        M <- BindKey(true, 0x4D,0,0);

 gate <- array( GetMaxPlayers(), null );
        gateStatus = true;
 gate = CreateObject( 310, 1, -276.618, -495.992, 10.2778, 255 );
}

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

UncleRus

in console bind not find how to do fix it
I LoperkinDead.My brothers scripters TimyrSem,VladSem