29.07.2015, 20:30
I Need Help With Textdraw Functions
29.07.2015, 20:42
Hello! 
There where you show the textdraw you have to set a variable. Well in OnPlayerText you check if the variable is on 1 (if you set the variable on 1) and hen you can check which number the player tapped.

There where you show the textdraw you have to set a variable. Well in OnPlayerText you check if the variable is on 1 (if you set the variable on 1) and hen you can check which number the player tapped.
31.07.2015, 15:19
how can i set a variable can you show me please?
01.08.2015, 13:40
still no answer
01.08.2015, 13:53
Well, When player use /cmds. Just set, ShowingTD[playerid] = 1;
Then use it OnPlayerText.
Ex
Then use it OnPlayerText.
Ex
Код:
public OnPlayerText(playerid, text[])
{
if(ShowingTD[playerid] == 1)
{
if(strval(text) == 1)
{
ShowingTD[playerid]=0;
TextDrawHideForPlayer(playerid,maintd);
TextDrawShowForPlayer(playerid, rulestd or something);
return 0;
}
And so on.
}
return 1;
}
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)


