12.12.2014, 09:37
hello samp community
i have some questions about "Player Textdraws"
1.wiki:
If you use color codes (such as ~R~ ~G~) beyond 255th character the client will crash trying to display the textdraw.
what does "255th" mean
2.i have to destroy player textdraw when player disconnects or server automaticly destroys them ?
because in wiki :
Player-textdraws are automatically destroyed when a player disconnects.
but somewhere destroyed it onplayerdisconnect
because of this i'm confused
3.if i don't make player textdraw like this: new PlayerTextTextdraw[MAX_PLAYERS];
when i change "pTextdraw" string or color or.. for all player it will be change ?!
sorry for my bad english
thanks in advance
i have some questions about "Player Textdraws"
1.wiki:
If you use color codes (such as ~R~ ~G~) beyond 255th character the client will crash trying to display the textdraw.
what does "255th" mean
2.i have to destroy player textdraw when player disconnects or server automaticly destroys them ?
because in wiki :
Player-textdraws are automatically destroyed when a player disconnects.
but somewhere destroyed it onplayerdisconnect
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
PlayerTextDrawDestroy(playerid, pTextdraw[playerid]);
return 1;
}
3.if i don't make player textdraw like this: new PlayerTextTextdraw[MAX_PLAYERS];
when i change "pTextdraw" string or color or.. for all player it will be change ?!
sorry for my bad english
thanks in advance