How come this says undefined symbol?
#1

I'm doing
pawn Код:
new gate1;
Then I'm doing
pawn Код:
gate1 = CreateObject(971,-82.00000000,-1135.80004883,2.79999995,0.00000000,0.00000000,154.00000000); //object(subwaygate) (1)
And I compiled and it says it's a undefined symbol? I'm putting it under OnGameModeInIt and the
pawn Код:
new gate1;
under my includes.
Reply
#2

Is "new gate1" outside OngameModeInit?
Reply
#3

Quote:
Originally Posted by Alureon
Посмотреть сообщение
Is "new gate1" outside OngameModeInit?
Yes, it's at the top of my script.
Reply
#4

Make sure that it isn't line inside and if defined statements.
Reply
#5

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
Make sure that it isn't line inside and if defined statements.
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT
new gate1; //Here it is.
Reply
#6

put the new gate1; under the #endif
Reply
#7

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

new gate1;

#if defined FILTERSCRIPT
Try that. It only created the variable when

pawn Код:
#define FILTERSCRIPT
Was uncommented. It was.
Reply
#8

Thank you guys, I finally created my first movable gate. I've had troubles creating it since I started scripting. +rep all of you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)