TexDraws again
#1

Hello, well, iґve ran into a very strange thing.

I try to create custom things, such as the ATM screen with TextDraws.

Everything is normal and all, but when 2 players use the command to bring the texdraws up at the same time, the textdraws wont hide anymore for neither of the players.
And i think iґve done everything right, is it somekind of SAMP bug, or is it really my script?



Reply
#2

Yeah, it's your script.

Post the code if you want it to be fixed.
Reply
#3

It will be your script, make sure you hide the right variable and make sure it's 1 textdraw per player.
Reply
#4

I think this is your problem:

pawn Код:
new Text:yourtext[MAX_PLAYERS];


//This is just an example
public OnPlayerSpawn(playerid)
{
yourtext[playerid] = TextDrawCreate(......);
TextDrawShowForPlayer(Text:yourtext);
}
That [playerid] makes the textdraw for all players, it won't use just one same textdraw

Reply
#5

Use MAX_PLAYERS otherwise it'll getting bugged.
Reply
#6

Thank you very much all, i got it fixed

And i mean it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)