TextDraw ??
#1

im still a beginner in using textdraws , i opened the wiki website and found TextDrawCreate , here's the code
Код:
// This variable is used to store the id of the textdraw
// so that we can use it throught the script
new Text:welcomeText; 
 
public OnGameModeInit()
{
    // This line is used to create the textdraw. 
    // Note: This creates a textdraw without any formatting.
    welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");
    return 1;
}
 
public OnPlayerConnect(playerid)
{
    //This is used to show the player the textdraw when they connect.
    TextDrawShowForPlayer(playerid,welcomeText);
}
however the the text draw doesnt appear on the screen , how can i solve that ? also if there's a better way to learn text draws please let me know
PS: this code is from the wiki
Reply
#2

Quote:

// Note: This creates a textdraw without any formatting.

Now do the formatting with the other functions! At least set the text size, color, dimensions, just the major stuff.
Reply
#3

I suggest you to use this script as a biggner with texdraws, it will make your life more easily 100&.
https://sampforum.blast.hk/showthread.php?tid=376758
Check this tutorial, and learn how to use this script. You will find every thing in the pervous link.

Hm, If you want any more stuffs, you can give me a pm!
Reply
#4

thanks guys +rep to both of u
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)