Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Scripts/Questions/Help

6,770 replies
Page
To the start Previous 1 2105 106 107338 339 Next To the start

old Re: Lua Scripts/Questions/Help

NozliW
User Off Offline

Quote
i've got another problem :S
Spoiler >

old Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Quote
Spoiler >


Tada~ Tell me if it works please guys~

old Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Quote
CmDark has written
Spoiler >


Tada~ Tell me if it works please guys~


OOPss fixed

Edit: 2
          Weird ... It won't return 1 for the text
           IF i use other scripts with it
edited 2×, last 27.11.09 10:05:51 pm

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
@CmDark
1
if (text) then

Is it returns true? Wth? Say hook means true...

Why you want return it ? lol...

old Re: Lua Scripts/Questions/Help

Roni
User Off Offline

Quote
Blazzingxx has written
@CmDark
1
if (text) then

Is it returns true? Wth? Say hook means true...

Why you want return it ? lol...

ya it returns true...
lua test if the variable is setted.
so it returns true .

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
@Ronu, Cmdark,
It's pointless to return text on say hook... There wont be hook without text I mean.
It will always return true.
Same as if (text ~= nil) then , anyway it's not a nil and will return as true.

old Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Quote
It's just this problem i have
if i use my other lua scripts with it
~The part where it's supposed to return 1
     to text and then msg
     it doesn't return 1 to the normal text
i'm tryin to figure out which lua script is causing it now

Edit: I found out which script is doing it...
          stupid.. AMX2D is messing the script up

old Re: Lua Scripts/Questions/Help

NozliW
User Off Offline

Quote
i've got this:
1
2
3
4
5
6
7
8
9
function menuu(id,tit,sel)
     if (tit == "Main Menu") then
          if (sel == 1) then
               classes_menu(id)
               if (sel == 1) then
                    class[id] = 1
                    my_msg2(id,"©000255000Your Class Will Be Changed After Next Spawn")
               -- more for classes and rest of script.
end
when i enter the main menu and then the class menu i get the message before choosing a class.
and when i enter the class menu by a serveraction i don't get the msg.
also i don't get any change on the player. doesn't equip items that are returned and doesn't change player's speed,maxhp,armor and etc.
----
LUA ERROR: attempt to call a nil value
but this is ONLY then i attack and use second function of weapon(attack2)i've got hit,attack and attack2 hooks but i haven't used any of those yet.

old Re: Lua Scripts/Questions/Help

Trotskygrad
User Off Offline

Quote
Flacko has written
@Trotskygrad:
http://www.unrealsoftware.de/forum_posts.php?post=120848&start=2080#post159258

You should use .bmp or .png images.
Black is transparent.
If you have any problem it's because you fucked up, I tried it for a while and it was working.


O.o I missed that, thanks man. I used a .bmp image with a with black background and white stripes (I was smart enough to infer that from the glowingplayers script). Thanks!

old Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Quote
hey theres this trick with auto exec ,i bet everyone know it(change weps like in COD) anyways is it possible to use lua in autoexec or only bindings? what else can we do with auto exec file??pls tell
i put this post here to if i can use lua + not to make a new thred.

old Re: Lua Scripts/Questions/Help

Vibhor
User Off Offline

Quote
okay i need serious help now with the hudtxt2 command
i got the part of (player) (text) (align)
i need to know (id) and (x),(y)
i mean i know what x,y is but i dont know how to know the
x and y on the hud

old Re: Lua Scripts/Questions/Help

NozliW
User Off Offline

Quote
Please help me with this. i've got no idea why this happens :S.
Spoiler >

thanks for answering
EDIT:
oh well now i've taken out the attack and attack2 hooks and i don't get any error for that,but spawn problem is still there...
To the start Previous 1 2105 106 107338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview