Facing issues with CallRemoteFunction
#1

Trying to call a public function at a filterscript. Function is at gamemode and I want it to be called at filterscript.

pawn Код:
forward GivePlayerMoneyEx(playerid,money); // gamemode
public GivePlayerMoneyEx(playerid,money)
{
    SMoney[playerid] = GetPlayerMoney(playerid) + money;
    GivePlayerMoney(playerid,money);
    printf("called");
}
#define GivePlayerMoney GivePlayerMoneyEx
pawn Код:
forward GivePlayerMoneyExa(playerid,money); // filterscript
public GivePlayerMoneyExa(playerid,money)
{
    CallRemoteFunction("GivePlayerMoneyEx", "ii",playerid,money);
}
#define GivePlayerMoney GivePlayerMoneyExa
Reply
#2

Bump
Reply
#3

I think you have to make the function in the FS and call it in the GM
Reply
#4

Quote:
Originally Posted by Blademaster680
Посмотреть сообщение
I think you have to make the function in the FS and call it in the GM
How to call the function on the filterscript ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)