TextDrawShowForPlayer NOT SHOWING
#1

Hi. I'm using TextDrawShowForPlayer and its not showing it for player who joins the game.

Example of the code I made.

Код:
new Text:TDNews1;
Then on public OnGameModeInit() I set up the way the textdraw is going to look.
Код:
public OnGameModeInit()
{
    TDNews1 = TextDrawCreate(400,400, "Text");
    // Textdraw Settings here
    return 1;
}
Then adding TextDrawShowForPlayer(playerid, TDNews1); on public OnPlayerConnect(playerid)
Код:
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, TDNews1);
    return 1;
}
And finally on public OnPlayerSpawn(playerid) add TextDrawHideForPlayer(playerid, TDNews1);
public OnPlayerSpawn(playerid)
Код:
{
    TextDrawHideForPlayer(playerid, TDNews1);
    return 1;
}
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.
Код:
#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
most of them are necessary for the gamemode to compile.
Reply
#2

I added this into my game mode, and it shows on the right of the spawn bar, Check it again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)