Problem with OnPlayerSpawn - 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: Problem with OnPlayerSpawn (
/showthread.php?tid=660504)
Problem with OnPlayerSpawn -
Alteh - 05.11.2018
Код:
(2550) : error 017: undefined symbol "_ALS"
(2550) : error 029: invalid expression, assumed zero
(2550) : error 017: undefined symbol "_ALS_go"
(2550) : fatal error 107: too many error messages on one line
Line:
Код:
OnPlayerSpawn(playerid);
I use as a function.
The problem happens if is included <fixes.inc>
i have it below the <a_samp>
what i'm do?
Updated to the latest version and the error continues.
i use like that:
Код:
#include <a_samp>
#define FIXES_ServerVarMsg 0
#include <fixes>
#include <crashdetect>
#include <YSI\YSI_Data\y_foreach>
#include <YSI\YSI_Storage\y_ini>
#include <YSF>
#include <Pawn.CMD>
#include <Pawn.RakNet>
#include <streamer>
#include <memory>
#include <PreviewModelDialog>
#include <sscanf2>
#include <player_geolocation>
#include <money-config>
Re: Problem with OnPlayerSpawn -
ApolloScripter - 05.11.2018
Hello, I have already gone through this error in my GM try download the latest commit of this include, the creator fixed it to be compatible with other libraries hooking callbacks, that may be the source of the problem.
Re: Problem with OnPlayerSpawn -
Alteh - 06.11.2018
Quote:
Originally Posted by ApolloScripter
Hello, I have already gone through this error in my GM try download the latest commit of this include, the creator fixed it to be compatible with other libraries hooking callbacks, that may be the source of the problem.
|
Updated to the latest version and the error continues.
i use like that:
Код:
#include <a_samp>
#define FIXES_ServerVarMsg 0
#include <fixes>
#include <crashdetect>
#include <YSI\YSI_Data\y_foreach>
#include <YSI\YSI_Storage\y_ini>
#include <YSF>
#include <Pawn.CMD>
#include <Pawn.RakNet>
#include <streamer>
#include <memory>
#include <PreviewModelDialog>
#include <sscanf2>
#include <player_geolocation>
#include <money-config>
Re: Problem with OnPlayerSpawn -
Alteh - 06.11.2018
Quote:
Originally Posted by ******
Don't call callbacks directly.
|
then I would have use timers. >_<
Thanks for answer
Re: Problem with OnPlayerSpawn -
Alteh - 06.11.2018
Quote:
Originally Posted by ******
Don't call callbacks indirectly either. Don't ever call them. They are for the server to inform you of when something happens, calling them at other times is wrong.
|
Then should create new function?
Re: Problem with OnPlayerSpawn -
Alteh - 06.11.2018
i created new function and it works fine:
Код:
forward OnPlayerSpawnEx(playerid);
public OnPlayerSpawnEx(playerid){
//Functions :P
return 1;}
Thanks ******
Re: Problem with OnPlayerSpawn -
g1venchy - 06.11.2018
when function isn't called by timer then you don't need public and forward thing, you just add function like
OnPlayerSpawnEx(playerid){
return 1;
}
Re: Problem with OnPlayerSpawn -
Alteh - 06.11.2018
Quote:
Originally Posted by g1venchy
when function isn't called by timer then you don't need public and forward thing, you just add function like
OnPlayerSpawnEx(playerid){
return 1;
}
|
it just what i did!
this topic is solved.