#1

For example
PHP код:
public OnGameModeInit()
{
 function();
}
function()
{

If I define the function later on, I get undefined symbol error, I remember this shouldn't occur, but it does, any help?
Reply
#2

Show what you're trying to do exactly and the errors you get.
Reply
#3

I mean if I define the function later on in script, for example below, and call the function earlier somewhere, I get the undefined symbol "function name" error.
Reply
#4

Are you sure you use the correct compiler?
You can use the compiler from the Server Package, Zeex's compiler or the russian compiler.
Reply
#5

Quote:
Originally Posted by 10MIN
Посмотреть сообщение
Are you sure you use the correct compiler?
You can use the compiler from the Server Package, Zeex's compiler or the russian compiler.
Well, I'm not gonna use that russian complier at any cost, who knows what might it has.
Reply
#6

Код:
#include a_samp 

main()
{
	printf("Hello");
	f();
}

f()
{
	
}
I've just tried this and it works fine
Reply
#7

Quote:
Originally Posted by kAn3
Посмотреть сообщение
Код:
#include a_samp 

main()
{
	printf("Hello");
	f();
}

f()
{
	
}
I've just tried this and it works fine
That's what I'm saying. It shouldn't happen but it does happen.
Reply
#8

Do you have other functions too and they work fine?
This also occurs when a bracket is missing.
Reply
#9

Quote:
Originally Posted by coool
Посмотреть сообщение
Do you have other functions too and they work fine?
This also occurs when a bracket is missing.
I used missing bracket's finder and yes 2 brackets were missing, and I successfully fixed them. But now the compiler crashes and I've no clue.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)