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
#2

nm. I did. Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)