Thanks for the reply Jayjay.
I have also noticed when making calls from packets, I get varied results.
Example:
On Connect -> Send Packet "RemoteJoin" & ":" & global('PlayersConnected') & ":" & global('PlayerName')
Sends a packet when a player connects...
Then to receive the packet
On packet type -> "Remote Join" Set Text.text "global('PlayerName')"
This works fine
however...
On packet type -> "Remote Join" Set Text.text "GetToken(Network.PacketData,1,":")"
This does not. It returns a "0" for some reason.
What the hell crap?
~Sol
It sends that when it connects itself as well, so when it first sends it the value of PlayersConnected is 0. However, when another player joins they also send this message out. So rather than the server saying how many people are online, the clients are telling everyone they don't know who's online.
At least, that's what I think is happening.
Edit: Ah! Also, token 1 is the PlayersConnected, 2 is the name of the player.