|
|
#61 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2011
Location: England
Posts: 5,255
Reputation: 748
|
But say I wanted to make a 'list' of 10 textdraws on the screen. I would use a loop and the height would be, for example, 100+(i*10), if the list started at Y-100 and went down Y-10 every time. I would need to get the raw text to be able to do this. Is there absolutely no way of doing this?
Surely the text that is passed to GameTextForPlayer etc. interally has the colours processed at that point - can't that be passed to a function for what I want? By just specifying the type of style (client-message, TD/gametext etc.)? |
|
|
|
|
|
#62 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,235
Reputation: 1900
|
There is "Text_GetLastID", with which you can do:
pawn Code:
"Text_GetLastID" is a bit of a hack for manipulating TDs, and returns -1 if the display style is not a text draw. |
|
|
|
|
|
#63 |
|
Little Clucker
![]() Join Date: Apr 2013
Posts: 5
Reputation: 0
|
Hello! This line is from my language file:
Code:
banCheck = Error: #WHITEYou have been banned by administrator #RED%s#WHITE.\n#REDReason:{WHITE} %s
First case: http://i39.tinypic.com/351fw4k.png Second case: http://i43.tinypic.com/plh1w.png Is there any solution for this? I don't want to have whitespace before "Reason: ...". Thanks! |
|
|
|
|
|
#64 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,235
Reputation: 1900
|
I think that might be a bug, I'll try fix it.
|
|
|
|
|
|
#65 |
|
Little Clucker
![]() Join Date: Apr 2013
Posts: 5
Reputation: 0
|
This is a temporary solution for me (if anyone else has the problem):
Script: Code:
Text_Send(playerid, $banned); Text_Send(playerid, $banReason); Code:
banned = Error: #WHITEYou have been banned by administrator #RED%s#WHITE. banReason = Reason: #WHITE%s. Code:
<entry name="banned" style="client" colour="X11_RED" /> <entry name="banReason" style="client" colour="X11_RED" /> |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|