[HELP] About #include
#1

When i

#include <a_samp> and
#include <a_npc> and i use this command

new string[255];

public OnPlayerSpawn(playerid)
{
format(string,sizeof(string),"НРдГ");
SendChat(string);
return 1;
}

or any command in a_npc.inc it will error all like this error 017: undefined symbol "SendChat"


but when i do like this

#include <a_npc> (change position)and
#include <a_samp> and i use this command

new string[255];

public OnPlayerSpawn(playerid)
{
format(string,sizeof(string),"НРдГ");
SendChat(string);
return 1;
}

it error like this warning 235: public function lacks forward declaration (symbol "OnPlayerSpawn")

can anybody tell me.

Reply
#2

You can define only one of them. It depends on thing, if it is a NPC-Mode. There is not callback "OnPlayerSpawn".
You have to do it in your GameMode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)