CallRemoteFunction sending PlayerText value
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
They are just integers, so "i" or "d", but because they have a special tag the compiler will complain as it doesn't think that is a valid use. We know it IS a valid use though, so you can override it like so:

pawn Код:
CallRemoteFunction("SS_OnPlayerClickPlayerTextDraw", "di", playerid, _:playertextid);
The "x:" syntax means "pretend the following symbol is this tag". The default tag for integers that don't have a tag specified (like your "playerid" variable) is "_".
Oho, So essentially _: tells it to ignore the tag and treat the integer value as a integer value. That's very useful. Much thanks for the explanation. This reminds me of casting object to other objects in Java.
Reply


Messages In This Thread
CallRemoteFunction sending PlayerText value - by DeStunter - 17.05.2014, 23:24
Re: CallRemoteFunction sending PlayerText value - by DeStunter - 17.05.2014, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)