SA-MP Forums Archive
HELP | TEXTDRAW/GAMETEXT - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP | TEXTDRAW/GAMETEXT (/showthread.php?tid=275325)



HELP | TEXTDRAW/GAMETEXT - TeRmi[N]aTor - 09.08.2011

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 ?


Re: HELP | TEXTDRAW/GAMETEXT - JaTochNietDan - 09.08.2011

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.


Re: HELP | TEXTDRAW/GAMETEXT - TeRmi[N]aTor - 09.08.2011

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


Re: HELP | TEXTDRAW/GAMETEXT - Grim_ - 09.08.2011

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.