OnPlayerSpawn already defined
#1

Код:
(974) : error 021: symbol already defined: "OnPlayerSpawn"
It says it's already defined, but it's not. I searched through the defines, and every other file through the server files. Why is this happening?
Reply
#2

it must be defined somewhere
Reply
#3

Quote:
Originally Posted by Mohaaaaaaaaaaa
Посмотреть сообщение
it must be defined somewhere
It's not trust me I checked. :/
Reply
#4

Quote:
Originally Posted by aoky
Посмотреть сообщение
It's not trust me I checked. :/
Check everything again. Look through all the includes as well. It doesn't just give you that error for nothing.

Can you also show us what is at line 974 and a few lines before and after it?
Reply
#5

Quote:
Originally Posted by aoky
Посмотреть сообщение
Код:
(974) : error 021: symbol already defined: "OnPlayerSpawn"
It says it's already defined, but it's not. I searched through the defines, and every other file through the server files. Why is this happening?
This error message doesn't necessarily mean that OnPlayerSpawn has actually been defined using #define, it just means that you have two of the same callbacks somewhere in your script. Try searching once more through your entire script (using CTRL + F) and you might just find two OnPlayerSpawn callbacks.
Reply
#6

I checked, I can't seem to find it.
Reply
#7

First of all like FunnyBear said, it doesnt mean it has to be defined as in #define. It's probably public OnPlayerSpawn.

Second it may not be in your gamemode, it could be bad hook (someone forgot to hook it) in some include.

When you are searching use CTRL+F as your eyes could miss it, computer cant.
Reply
#8

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
First of all like FunnyBear said, it doesnt mean it has to be defined as in #define. It's probably public OnPlayerSpawn.

Second it may not be in your gamemode, it could be bad hook (someone forgot to hook it) in some include.

When you are searching use CTRL+F as your eyes could miss it, computer cant.
I've checked the whole script, defines, I will look through the includes now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)