error 017: undefined symbol
#1

I was editing a script and when i do compile that error came up

error 017: undefined symbol "GetPlayerPoolSize"

Help me please

Код:
	for(new i; i<=GetPlayerPoolSize( ); i++) INI_ParseFile(UserPath(i), "LoadUser_%s", .bExtra = true, .extra = i);
	return 1;
}
Reply
#2

Quote:
Originally Posted by Krauser123
Посмотреть сообщение
I was editing a script and when i do compile that error came up

error 017: undefined symbol "GetPlayerPoolSize"

Help me please

Код:
	for(new i; i<=GetPlayerPoolSize( ); i++) INI_ParseFile(UserPath(i), "LoadUser_%s", .bExtra = true, .extra = i);
	return 1;
}
Try this
PHP код:
for(new 0; new GetPlayerPoolSize(); i<ji++) 
Reply
#3

Quote:
Originally Posted by NeXoR
Посмотреть сообщение
Try this
PHP код:
for(new 0; new GetPlayerPoolSize(); i<ji++) 
If you mean to make it like that

PHP код:
for(new 0; new GetPlayerPoolSize(); i<ji++) INI_ParseFile(UserPath(i), "LoadUser_%s", .bExtra true, .extra i);
    return 
1;

That what i got

error 029: invalid expression, assumed zero
error 017: undefined symbol "GetPlayerPoolSize"
warning 204: symbol is assigned a value that is never used: "i"
error 017: undefined symbol "i"
Reply
#4

Quote:

This function was added in SA-MP 0.3.7 and will not work in earlier versions!

Make sure your includes are updated.
Reply
#5

Quote:
Originally Posted by zPain
Посмотреть сообщение
Make sure your includes are updated.
It's all updated :/
Reply
#6

And actually 9 errors and it says that the script is Compiler but i can't find the AMX file...
Reply
#7

Quote:
Originally Posted by Krauser123
Посмотреть сообщение
If you mean to make it like that

PHP код:
for(new 0; new GetPlayerPoolSize(); i<ji++) INI_ParseFile(UserPath(i), "LoadUser_%s", .bExtra true, .extra i);
    return 
1;

That what i got

error 029: invalid expression, assumed zero
error 017: undefined symbol "GetPlayerPoolSize"
warning 204: symbol is assigned a value that is never used: "i"
error 017: undefined symbol "i"
My mistake,
Here is the fixed code:
PHP код:
for(new 0GetPlayerPoolSize(); i<ji++) INI_ParseFile(UserPath(i), "LoadUser_%s", .bExtra true, .extra i);
    return 
1;

Had to use `,` instead of `;` and remove the second "new"
Reply
#8

Код:

i <= j
Reply
#9

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
Код:

i <= j
I tired your both solutions but still the same error
Reply
#10

Quote:
Originally Posted by Krauser123
Посмотреть сообщение
It's all updated :/
Clearly it's not if the compiler complains about it. And also don't doubleclick on Pawn files to open them. Open the editor first - so the compiler will look in the right directory for the include files - and then open the script from the editor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)