Making str_to_num cycle in client_PostThink
Code:
When i set the scale and brightness right into the plugin it works. But when i wanna use the code with str_to_num it only plays 1 cycle and then it dissapears again. While this snippet works but not customaizable via the ingame console. Code:
So HOW do i make it so i can use str_to_num in the snippet without vanishing after 1 cycle ? |
Try printing the values to check if there's an error in your code.
|
Code:
i used this to show me Infos about it. But i got no usefull info of it. Its not even show the values i used. i command scale brightness( command 5 111) but i got some number of 243 and 5 etc. displayed nothing where could help me somehow. but the MSG is still playing otherwise it would show 0 the whole time. could it be that i have use DispatchSpawn( ); somehow ? or what ? |
If the values aren't showing, then there must be an error in your code.
|
But where ?
cause when i set the values right away in the plugin (without str_to_num) then there is no problem with the Sprite beeing displayed and it cycles so long till i stop it. But the str_to_num only plays 1 cycle. :cry: |
umm.. theres no arguments to read with read_argv in client_PostThink() coz its a forward :?
|
Is there any other way ? I know its possible cause i have seen it beeing able to custom choose the scale and brightness in the console and haveing the same effect.
I also tried it with set_task. |
Code:
Code:
|
I could be wrong, but you could get an message overflow if you use this in pre/postthink
I think it would be better if you use an cmd for t his |
The cvar thinggy crashes me to the desktop.
Hmms. Too bad it aint possible for me to make it how i want it. *looks at Greenberet :D its this effect where i wanna be able to choose ingame the scale and brightness [img]http://img88.**************/img88/3690/unbenannt3dv.th.jpg[/img] When i use str_to_num it creates the scale and brightness i choosed, but it stays at the position then and only plays 1 cycle. But when i set the scale and the brightness in the plugin without str_to_num It follows me like i want it too and it isnt stopping after 1 cycle. |
| All times are GMT -4. The time now is 05:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.