04.04.2012, 12:23
Quote:
Don't create textdraws in functions. It is best to create them in OnGameModeInit. You should read the wiki more: https://sampwiki.blast.hk/wiki/TextDrawCreate
pawn Код:
pawn Код:
pawn Код:
pawn Код:
|
And why should i create player Textdraws in OnGameModeInit.
My global textdraws are created in OnGameModeInit and destroyed in OngameModeExit.
When a player need the Textdraw it will be shown for the player and hide if not.
But my Player textdraws will create when it it is needed. And when it isnt needed anymore it will destroy.
I could create all playertextdraws when they connect and destroy when they leave, but why should i have unnecessary Textdraw created? Why u use an Object Streamer? because you dont need Object in LV while you are in LS or SF


______
I tried it, but there are stil errors:
Код:
stock p_PlayerTextDrawDestroy(playerid, &PlayerText:text) { PlayerTextDrawDestroy(playerid, text); _:text = -1; }