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 i = 0; new j = GetPlayerPoolSize(); i<j; i++)
Re: error 017: undefined symbol -
Krauser123 - 19.06.2016
Quote:
Originally Posted by NeXoR
Try this
PHP код:
for(new i = 0; new j = GetPlayerPoolSize(); i<j; i++)
|
If you mean to make it like that
PHP код:
for(new i = 0; new j = GetPlayerPoolSize(); i<j; i++) 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 i = 0; new j = GetPlayerPoolSize(); i<j; i++) 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 i = 0, j = GetPlayerPoolSize(); i<j; i++) 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
Re: error 017: undefined symbol -
Krauser123 - 19.06.2016
Quote:
Originally Posted by AbyssMorgan
|
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.