TextDrawHelp
#1

Well while i use /changeclass i have bugs now i need a little help i need something to delete pervious textdraws with TextdrawDestroy just like ResetPlayerWeapons,


ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,0x0000FFFF);
SetPlayerArmour(playerid, 75);
TextDrawShowForPlayer(playerid, Worker);
TextDrawShowForPlayer(playerid, TeamWorkersTextdraw);
GivePlayerWeapon(playerid,16,2);
GivePlayerWeapon(playerid,29,200);
GivePlayerWeapon(playerid,35,2);
Reply
#2

pawn Код:
TextDrawShowForPlayer(playerid, Worker);
TextDrawShowForPlayer(playerid, TeamWorkersTextdraw);
This is the TextDraws you want to delete ?
pawn Код:
TextDrawDestroy(Worker[playerid]);
TextDrawDestroy(TeamWorkersTextdraw[playerid]);
Reply
#3

Can i do like dat

TextDrawDestroy(Worker,MajorWorkers,WallBuilder[playerid]);
TextDrawDestroy(TeamWorkersTextdraw[playerid]);
Reply
#4

Hello i tried like this but did not work also when i tried your way gave me some errors

TextDrawDestroy(Worker);
TextDrawDestroy(MajorWorker);
TextDrawDestroy(Builder);
TextDrawDestroy(Transporter);
TextDrawShowForPlayer(playerid, Worker);
Reply
#5

Use PlayerTextDraws instead.
If there are 500 players online you would need 1000 global textdraws (2 * 500).
So if you will continue on global textdraws you might jump out of the limit..
In addition PlayerTextDraws gives private care for each player please read at wiki.
Reply
#6

And i get this error undefined symbol "playerid"
I have a question can i post my while script and do something for me ?
Reply
#7

Are you saying that you replaced everything to player textdraws if so create the textdraws under OnPlayerConnect and it will work fine.
Any feedback would be appreciated!.
Reply
#8

I have auto save team and class so i want when player spawns with his last class to get his textdraw and also when he used /changeclass to get his new class and textdraw
Reply
#9

You can join my server and see whats my error if im allowed to say this.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)