03.03.2016, 22:53
im still a beginner in using textdraws , i opened the wiki website and found TextDrawCreate , here's the code
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
Код:
// 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); }
PS: this code is from the wiki