Problem with OnPlayerSpawn
#1

Код:
(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>
Reply
#2

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.
Reply
#3

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>
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
Don't call callbacks directly.
then I would have use timers. >_<

Thanks for answer
Reply
#5

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?
Reply
#6

i created new function and it works fine:

Код:
forward OnPlayerSpawnEx(playerid);
public OnPlayerSpawnEx(playerid){
//Functions :P
return 1;}
Thanks ******
Reply
#7

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;
}
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)