Gate Invalid Function or Declaration
#1

Making Gate:
Код:
new LSPDGate1Open;
new LSPDGate1;
new stock GateTimer;
LSPDGate1 = CreateObject(968,1544.5999756,-1630.9000244,13.3999996,0.0000000,0.0000000,87.9949036);
Errors on LSPDGate1 = Createobject Line
Код:
error 010: invalid function or declaration
Reply
#2

I think it's the line above:

pawn Код:
new stock GateTimer;
change to:

pawn Код:
new GateTimer;
Reply
#3

Nope still same errors
Reply
#4

Where are you putting this line:
pawn Код:
LSPDGate1 = CreateObject(968,1544.5999756,-1630.9000244,13.3999996,0.0000000,0.0000000,87.9949036);
Reply
#5

^^
All object lines that are already set on your server should be under OnGameModeInit. Not where includes, defines and new variables are placed.
Reply
#6

All my ZCMD Commands are placed outside of a callback. Now when I placed the Line at gamemode init i got huge errors.
Unknown Symbol LSPDGATE1
was one of em
Reply
#7

ONLY move this line to OnGameModeInit, don't move all the lines above it as well, leave them above all the callbacks. Only place this one into OnGameModeInit:
pawn Код:
LSPDGate1 = CreateObject(968,1544.5999756,-1630.9000244,13.3999996,0.0000000,0.0000000,87.9949036);
Reply
#8

nvm fixed it had to put new lspdgate with the create object
Reply
#9

when i put all my zcmds commands above ongamemodeinit none of em work.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)