17.05.2014, 23:24
I am currently working on a gamemode, and I prefer object oriented programming so I have been working on a SpawnSelection include file. Everything is working great, been using hooked methods to make everything plug and play, but I ran into a issue with trying to send a PlayerText value through CallRemoteFunction to OnPlayerClickPlayerTextDraw. not sure how to exactly send this value when there is not a format for it on https://sampwiki.blast.hk/wiki/CallRemoteFunction
I am just wondering if there is any way to do it.
I am just wondering if there is any way to do it.
pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
//Not sure what to use where the ? mark is or if I need to just use the dirty method of not using CallRemoteFunction
CallRemoteFunction("SS_OnPlayerClickPlayerTextDraw", "d?", playerid, playertextid);
return 1;
}
#if defined _ALS_OnPlayerClickPlayerTextDra
#undef OnPlayerClickPlayerTextDraw
#else
#define _ALS_OnPlayerClickPlayerTextDra
#endif
#define OnPlayerClickPlayerTextDraw SS_OnPlayerClickPlayerTextDraw
forward SS_OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);