SA-MP Forums Archive
YSI: y_playerset.inc ALL_PLAYERS, ALL_HUMANS, ALL_BOTS? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: YSI: y_playerset.inc ALL_PLAYERS, ALL_HUMANS, ALL_BOTS? (/showthread.php?tid=625384)



YSI: y_playerset.inc ALL_PLAYERS, ALL_HUMANS, ALL_BOTS? - iSanchez - 01.01.2017

Hello there, I am using the y_language and y_text includes from the YSI 4.0 Framework.

I have a problem and a question,

I've read this tutorial: https://sampforum.blast.hk/showthread.php?tid=570943

And it says
Quote:

"Text_Send" is a VERY clever function:

The first paramter ("playerid" above) can be one of a number of things: A single playerid, an array of players, a YSI player array, an array of IDs, "ALL_PLAYERS", "ALL_BOTS", "ALL_CHARACTERS", or a YSI group.

but when I use

Text_Send(ALL_PLAYERS,...

It doesn't work.. (I don't see the message, but when I use playerid it works well)

I can't find too much information about this framework anywhere, or if it is required to define ALL_PLAYERS with another thing because it is defined as

Quote:

#define ALL_PLAYERS (0x7FFFFFF1)
#define ALL_HUMANS (0x7FFFFFF1)
#define ALL_CHARACTERS (0x7FFFFFF2)
#define ALL_BOTS (0x7FFFFFF3)

File: YSI_Data/y_playerset.inc

Thank you in advance.