Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Scripts/Questions/Help

6.770 Antworten
Seite
Zum Anfang Vorherige 1 2105 106 107338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

NozliW
User Off Offline

Zitieren
i've got another problem :S
Spoiler >

alt Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Zitieren
Spoiler >


Tada~ Tell me if it works please guys~

alt Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Zitieren
CmDark hat geschrieben
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
2× editiert, zuletzt 27.11.09 22:05:51

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
@CmDark
1
if (text) then

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

Why you want return it ? lol...

alt Re: Lua Scripts/Questions/Help

Roni
User Off Offline

Zitieren
Blazzingxx hat geschrieben
@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 .

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
@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.

alt Re: Lua Scripts/Questions/Help

CmDark
User Off Offline

Zitieren
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

alt Re: Lua Scripts/Questions/Help

NozliW
User Off Offline

Zitieren
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.

alt Re: Lua Scripts/Questions/Help

Trotskygrad
User Off Offline

Zitieren
Flacko hat geschrieben
@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!

alt Re: Lua Scripts/Questions/Help

DoP3
User Off Offline

Zitieren
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.

alt Re: Lua Scripts/Questions/Help

Vibhor
User Off Offline

Zitieren
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

alt Re: Lua Scripts/Questions/Help

NozliW
User Off Offline

Zitieren
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...
Zum Anfang Vorherige 1 2105 106 107338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht