SA-MP Forums Archive
error 017: undefined symbol - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 017: undefined symbol (/showthread.php?tid=610027)



error 017: undefined symbol - Krauser123 - 19.06.2016

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;
}



Re: error 017: undefined symbol - NeXoR - 19.06.2016

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++) 



Re: error 017: undefined symbol - Krauser123 - 19.06.2016

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"


Re: error 017: undefined symbol - zPain - 19.06.2016

Quote:

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

Make sure your includes are updated.


Re: error 017: undefined symbol - Krauser123 - 19.06.2016

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


Re: error 017: undefined symbol - Krauser123 - 19.06.2016

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


Re: error 017: undefined symbol - NeXoR - 19.06.2016

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"


Re: error 017: undefined symbol - AbyssMorgan - 19.06.2016

Код:

i <= j



Re: error 017: undefined symbol - Krauser123 - 19.06.2016

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

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


Re: error 017: undefined symbol - Vince - 19.06.2016

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.