02.11.2013, 14:45
Hi. I'm using TextDrawShowForPlayer and its not showing it for player who joins the game.
Example of the code I made.
Then on public OnGameModeInit() I set up the way the textdraw is going to look.
Then adding TextDrawShowForPlayer(playerid, TDNews1); on public OnPlayerConnect(playerid)
And finally on public OnPlayerSpawn(playerid) add TextDrawHideForPlayer(playerid, TDNews1);
public OnPlayerSpawn(playerid)
WHY IS THE TEXTDRAW IS NOT SHOWING UP WHEN I CONNECT TO THE SERVER, PLEASE EXPALIN
If it helps to understand those are the includes I use.
most of them are necessary for the gamemode to compile.
Example of the code I made.
Код:
new Text:TDNews1;
Код:
public OnGameModeInit() { TDNews1 = TextDrawCreate(400,400, "Text"); // Textdraw Settings here return 1; }
Код:
public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, TDNews1); return 1; }
public OnPlayerSpawn(playerid)
Код:
{ TextDrawHideForPlayer(playerid, TDNews1); return 1; }
If it helps to understand those are the includes I use.
Код:
#include <a_samp> #include <mGates> #include <a_players> #include <dini> #include <mSelection> #include <dutils> #include <foreach> #include <sscanf2> #include <zcmd> #include <streamer> #include <OPSP> #include <progress> #include <yom_buttons> #include <KickBan> #include <gvc> #pragma unused ret_memcpy