Calling a public function so it works in another script.
#1

Hello, I wanted to create OnPlayerLogin callback, but it's not quetly working my way.
What I have:
include:
pawn Code:
forward OnPlayerLogin(playerid);
Admin Script:
pawn Code:
CallLocalFunction("OnPlayerLogin","i",playerid);
If i try calling OnPlayerLogin(playerid) it says that it's unimplemented.

Another script ex. Gamemode:
pawn Code:
public OnPlayerLogin(playerid)
{
    SendClientMessage(playerid,0xFFFFFFAA,"You've logged in!");
    return 1;
}
so, could you tell me what is the thing I've done wrong?
Thanks.
Reply


Messages In This Thread
Calling a public function so it works in another script. - by [WSF]ThA_Devil - 03.06.2013, 16:25
Re: Calling a public function so it works in another script. - by [WSF]ThA_Devil - 03.06.2013, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)