SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/07/2019, 04:48 PM   #1
RakeDW
Little Clucker
 
Join Date: Jul 2014
Posts: 49
Reputation: 0
Default RPC - ShowTextDraw Flags

Ok so we have this RPC

Code:
ShowTextDraw - ID: 134
Parameters: UINT16 wTextDrawID, UINT8 Flags, float fLetterWidth, float fLetterHeight, UINT32 dwLetterColor, float fLineWidth, float fLineHeight, UINT32 dwBoxColor, UINT8 Shadow, UINT8 Outline, UINT32 dwBackgroundColor, UINT8 Style, UINT8 Selectable, float fX, float fY, UINT16 wModelID, float fRotX, float fRotY, float fRotZ, float fZoom, UINT16 wColor1, UINT16 wColor2, UINT8 szTextLen, char[] szText
I think this 'UINT8 Flags' represent some informations like alignment, usebox etc.
Is this true and if it is true can someone explain which bit is for what?

Sry 4 bad english
RakeDW is online now   Reply With Quote
Old 15/07/2019, 05:27 PM   #2
RakeDW
Little Clucker
 
Join Date: Jul 2014
Posts: 49
Reputation: 0
Default Re: RPC - ShowTextDraw Flags

Ok so I find out something.
Code:
18 = 0b10010 // prop = 1; align = 1; usebox = 0;
24 = 0b11000 // prop = 1; align = 2; usebox = 0;
20 = 0b10100 // prop = 1; align = 3; usebox = 0;
19 = 0b10011 // prop = 1; align = 1; usebox = 1;
25 = 0b11001 // prop = 1; align = 2; usebox = 1;
21 = 0b10101 // prop = 1; align = 3; usebox = 1;
So I guess 1st bit is - Proportional
2nd-4th is Alignment
5th is usebox

Correct me if I'm wrong
RakeDW is online now   Reply With Quote
Old 15/07/2019, 05:28 PM   #3
=KempeR=
Huge Clucker
 
=KempeR='s Avatar
 
Join Date: Oct 2011
Location: Kyiv, Ukraine
Posts: 253
Reputation: 7
Default Re: RPC - ShowTextDraw Flags

Here you are!
PHP Code:
struct
        
{
            
BYTE byteBox 1;
            
BYTE byteLeft 1;
            
BYTE byteRight 1;
            
BYTE byteCenter 1;
            
BYTE byteProportional 1;
            
BYTE bytePadding 3;
        }; 
__________________
Dafuq am I still doing in SA-MP in 2018?

Sincerely, Kemper
=KempeR= is offline   Reply With Quote
Old 15/07/2019, 05:30 PM   #4
RakeDW
Little Clucker
 
Join Date: Jul 2014
Posts: 49
Reputation: 0
Default Re: RPC - ShowTextDraw Flags

Quote:
Originally Posted by =KempeR= View Post
Here you are!
PHP Code:
struct
        
{
            
BYTE byteBox 1;
            
BYTE byteLeft 1;
            
BYTE byteRight 1;
            
BYTE byteCenter 1;
            
BYTE byteProportional 1;
            
BYTE bytePadding 3;
        }; 
Thanks man
RakeDW is online now   Reply With Quote
Old 15/07/2019, 09:34 PM   #5
RakeDW
Little Clucker
 
Join Date: Jul 2014
Posts: 49
Reputation: 0
Default Re: RPC - ShowTextDraw Flags

@=KampeR= what is bytePadding ?
RakeDW is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Textdraw Flags - Over 30 country flags Drebin Includes 71 25/09/2016 09:29 PM
ShowTextdraw. anassmaroc Scripting Help 5 22/08/2015 07:48 AM
[Tutorial] Bit Flags RockFire Lançamentos/Releases 16 01/04/2014 02:11 AM
Flags Vinninho Scripting Help 5 17/03/2013 05:45 PM
Flags Mustang GT Scripting Help 1 28/08/2011 06:03 AM


All times are GMT. The time now is 08:39 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.