Textdraw string issue
#1

Hey,

So i want to make it so a textdraw will change everytime a play teleports to a new place so it doesn't spam chat.

I have come across an issue.
I created the text draw and thats fine, this is the command the player will type.

Код:
    if(strcmp(cmd, "/christmas", true) == 0)
	{
	    if(InDM[playerid] == 1)
 		{
			SendClientMessage(playerid, COLOR_RED, "Please type /leavedm first!");
 			return 1;
		}
		else
		{
     		        new teleport1[200], name[200];
  			GetPlayerName(playerid, name, 24);
     		        format(teleport1, 128, "%s Has Teleported To /christmas ", name);
     		        TextDrawSetString(Text:teleports, teleport1);
			SetPlayerPos(playerid, 260.8745,2897.3154,9.6477);
			return 1;
		}
	}
However when the player types /christmas it just removes the textdraw all together. Im not sure if i'm missing anything but i want the text draw to update for all players.

Thanks.
Reply


Messages In This Thread
Textdraw string issue - by KingyKings - 19.12.2013, 18:44
Re: Textdraw string issue - by [EnErGyS]KING - 19.12.2013, 18:58
Re: Textdraw string issue - by iOxide - 19.12.2013, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)