SA-MP Forums Archive
Textdraw rep+ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw rep+ (/showthread.php?tid=587254)



Textdraw rep+ - Tixxt - 29.08.2015

Can someone help me put in the textdraw i made? When i put it in it gives a error. I never did it before. Can you help me via teamview that would be awesome! Rep+


Re: Textdraw rep+ - R0 - 29.08.2015

If you really cant do it then we will have to use teamviewer,believe me it's easy, here is what you have to do:
pawn Код:
new Text:yourtext; //anywhere up in your script

public OnGameModeInit()
{
    yourtext = TextDrawCreate(X,Y,"Text here"); // under ongamemode in it, change the text to your textdraw's text and change the X and Y to the coordinates that your textdraw has
    return 1;
}

//Now to show it to a player,you must use this under the command or the thing that you want it to show at, i will show you under onplayerconnect

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid,yourtext);
}



Re: Textdraw rep+ - Tixxt - 29.08.2015

It just does not work.. Im doing somthing wrong :S