The whole debate over player-textdraws not needing arrays..
#1

..is over. Here's solid proof.

http://pastebin.com/Nt14V7D8

To test it, you need to join as two people, playerid 0 and 1. The order of the textdraws being created is changed, playerid 0 has the textdraws created as A B C, but playerid 1 has them created as C A B. The B textdraw is ID 1 for playerid 0, BUT it is ID 2 for playerid 1. Different ids. You can't store different IDs in a single variable - YOU NEED AN ARRAY.

But then you might argue BUT MP2 THERE'S A PLAYERID PARAMETER - it does not matter. It still works on IDs. Each player can have an ID 0 player-textdraw.

I made this due to Southclaw editing the wiki with false information - clearly not having tested this.

There's also a command (you'll need zcmd) in the test mode - /delb. This deletes textdraw 'B' for the player. Try it on both playerids - it will delete C for playerid 0.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)