HELP | TEXTDRAW/GAMETEXT
#1

hello ,
i have found this picture in the internet :

Can Any One make something like that for me ? i cant do it :/

its in the center :/
i think that is a gametext ... not a textdraw. .
but how i can do this ?
Reply
#2

That looks like GameTextForPlayer, not a textdraw. Read the API on the SA-MP Wiki to learn how to do it, and if you're new to programming, look up the various tutorials/resources on the internet for learning the basics and you will have this done in no-time.

If you are simply looking for someone to do this for you, please go to the stickied Script Request Thread.
Reply
#3

I did it:
but its not the same ..


PHP код:
                    new Message[256];
                      
format(Message,sizeof(Message),"\"%s\"",PropInfo[ID][PropName]);
                    
GameTextForPlayer(playerid,Message,3000,3);
                    
//==========================================================
                      
format(Message,sizeof(Message),"~n~~R~price: ~W~%d",PropInfo[ID][PropPrice]);
                    
GameTextForPlayer(playerid,Message,3000,3);
                    
//==========================================================
                      
format(Message,sizeof(Message),"~N~~N~~R~sellvaule: ~W~%d",PropInfo[ID][PropSell]);
                    
GameTextForPlayer(playerid,Message,3000,3);
                    
//==========================================================
                      
format(Message,sizeof(Message),"~N~~N~~N~~R~earning: ~W~%d",PropInfo[ID][PropEarning]);
                    
GameTextForPlayer(playerid,Message,3000,3);
                    
//========================================================== 
i need help
Reply
#4

That is because only one game text can be shown to each player at a time. So when you show another game text for the player while one is currently displayed, it is hidden in order for the new one to get displayed on the screen. You can use the ~n~ (which I already see you use) to make new lines in the message. Simply format the whole message into one string and send it all at one time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)