Quantcast

Jump to content

» «
Photo

Problem with draw a texture

4 replies to this topic
kordboydm
  • kordboydm

    KBDM

  • Members
  • Joined: 29 Dec 2013
  • None

#1

Posted 14 June 2014 - 08:49 AM Edited by kordboydm, 14 June 2014 - 08:50 AM.

Hi guys :)

 

I have problem with this script

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0662: printstring "SYSTEMFV12" 
wait 0 
thread "TXD" 
03F0: enable_text_draw 1 

:TXD_39
wait 0 
if 
   Player.Defined($PLAYER_CHAR)   
else_jump @TXD_39 
0390: load_txd_dictionary "khoon"
038F: load_texture "100x" as 193 // Load dictionary with 0390 first
038F: load_texture "95x" as 194 // Load dictionary with 0390 first 
:TXD_89
wait 0
04DD: 0@ = actor $PLAYER_ACTOR armour
if or
   0@ == 100
   0@ == 99
   0@ == 98 
   0@ == 97
   0@ == 96
else_jump @TXD_89 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 193 position 83.0 350.0 size 128.0 16.0 RGBA 255 255 255 255 
if or
   0@ == 95
   0@ == 94
   0@ == 93
   0@ == 92
   0@ == 91
else_jump @TXD_89 
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 194 position 83.0 350.0 size 128.0 16.0 RGBA 255 255 255 255 
jump @TXD_39

when armour is between 100 and 96 it shows "193"texture

but when it's between 95 and 91 it doesn't show "194"texture

 

what should I do???

 

Help me plz

*Excuse me for my bad English :|


Rafal22
  • Rafal22

    Player Hater

  • Members
  • Joined: 02 Jul 2011
  • Poland

#2

Posted 14 June 2014 - 09:18 AM Edited by Rafal22, 14 June 2014 - 09:27 AM.

Try this :D

//-------------MAIN---------------
0662: printstring "SYSTEMFV12" 
thread "TXD" 
:TXD_39
wait 0 
if 
   Player.Defined($PLAYER_CHAR)   
else_jump @TXD_39 
0390: load_txd_dictionary "khoon"
038F: load_texture "100x" as 93 // Load dictionary with 0390 first
038F: load_texture "95x" as 94 // Load dictionary with 0390 first 
:TXD_89
wait 0
04DD: 0@ = actor $PLAYER_ACTOR armour
if and
   0@ >= 96
   100 >= 0@
else_jump @TXD_666
03F0: enable_text_draw 1
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 93 position 83.0 350.0 size 128.0 16.0 RGBA 255 255 255 255 
:TXD_666
if and
   0@ >= 91
   95 >= 0@
else_jump @TXD_89 
03F0: enable_text_draw 1
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 94 position 83.0 350.0 size 128.0 16.0 RGBA 255 255 255 255 
jump @TXD_89

kordboydm
  • kordboydm

    KBDM

  • Members
  • Joined: 29 Dec 2013
  • None

#3

Posted 14 June 2014 - 09:27 AM

 

Try this :D

//-------------MAIN---------------
0662: printstring "SYSTEMFV12" 
thread "TXD" 
:TXD_39
wait 0 
if 
   Player.Defined($PLAYER_CHAR)   
else_jump @TXD_39 
0390: load_txd_dictionary "khoon"
038F: load_texture "100x" as 93 // Load dictionary with 0390 first
038F: load_texture "95x" as 94 // Load dictionary with 0390 first 
:TXD_89
wait 0
04DD: 0@ = actor $PLAYER_ACTOR armour
if and
   0@ >= 96
   100 >= 0@
else_jump @TXD_666
03F0: enable_text_draw 1
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 93 position 83.0 350.0 size 128.0 16.0 RGBA 255 255 255 255 
:TXD_666
if and
   0@ >= 91
   95 >= 0@
else_jump @TXD_89 
03F0: enable_text_draw 1
03E3: set_texture_to_be_drawn_antialiased 1 
038D: draw_texture 94 position 83.0 350.0 size 128.0 16.0 RGBA 255 255 255 255 
jump @TXD_89

Same result :|


madleg
  • madleg

    Player Hater

  • Members
  • Joined: 01 Jan 2014
  • Russia

#4

Posted 14 June 2014 - 09:43 AM

 

Try this :D


if and
   0@ >= 96
   100 >= 0@
else_jump @TXD_66
:TXD_666
if and
   0@ >= 91
   95 >= 0@
else_jump @TXD_89 
jump @TXD_89

what the fuk?

...

038F: load_texture "100x" as 93 // Load dictionary with 0390 first
038F: load_texture "95x" as 94 // Load dictionary with 0390 first

 

:ccle

wait 0

04DD: 0@ = actor $PLAYER_ACTOR armor

if

    0@ >=  96

    then

    1@ = 93

    else

    if

        0@ >= 91

        then

        1@ = 94

        else

         jump @ccle

     end

end

03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 1@ position 83.0 350.0 size 128.0 16.0 RGBA 255 255 255 255

jump @ccle


kordboydm
  • kordboydm

    KBDM

  • Members
  • Joined: 29 Dec 2013
  • None

#5

Posted 14 June 2014 - 10:00 AM

 

 

Try this :D


if and
   0@ >= 96
   100 >= 0@
else_jump @TXD_66
:TXD_666
if and
   0@ >= 91
   95 >= 0@
else_jump @TXD_89 
jump @TXD_89

what the fuk?

...

038F: load_texture "100x" as 93 // Load dictionary with 0390 first
038F: load_texture "95x" as 94 // Load dictionary with 0390 first

 

:ccle

wait 0

04DD: 0@ = actor $PLAYER_ACTOR armor

if

    0@ >=  96

    then

    1@ = 93

    else

    if

        0@ >= 91

        then

        1@ = 94

        else

         jump @ccle

     end

end

03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 1@ position 83.0 350.0 size 128.0 16.0 RGBA 255 255 255 255

jump @ccle

 

Thanks a lot bro
 :)

God bless you :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users