English Lua Scripts/Questions/Help

6,770 replies
Goto Page
To the start Previous 1 2 ... 195 196 197 ... 338 339 Next To the start
28.04.10 10:40:11 am
Up
Flacko
User
Offline Off
Ok guys, Santa is back.

@Soja1997:
http://www.unrealsoftware.de/forum_posts.php?post=120848&start=3840#post179939

@Holloweye:
You could make your own timer system using a table and the msec100 hook.

@SDKey:
I don't get what you mean with bug, but here I replaced the old parse and placed the variables outside the table:
More >
28.04.10 02:02:27 pm
Up
Soja1997
User
Offline Off
flacko can't help me ;s
28.04.10 04:55:39 pm
Up
DRoNe
User
Offline Off
Can somebody put me one example for timer ?
thanks .
IMG:http://img39.imageshack.us/img39/567/drnatimg.png
29.04.10 01:02:23 am
Up
gabpro
User
Offline Off
Can somebody help me with 2 thing?

•Make the Gut Bomb heals people

•If variable[id]==X and the player [id] drop anything,the item dont disapears
Example : parse("spawnitem X Y Z")

Could not find it the hook at info.txt

If possible,the player can drop armors,nightvision,etc...(F3 menu?)
29.04.10 04:07:48 am
Up
SDKey
User
Offline Off
gabpro has written:
Can somebody help me with 2 thing?
More >


> @gabpro

√1. Two ways:
More >

√2. Again 2 ways:
More >

√2. Yes
More >
edited 4×, last 29.04.10 05:34:00 am
29.04.10 04:21:07 am
Up
Heartless Soldier
User
Offline Off
DRoNe has written:
Can somebody put me one example for timer ?
thanks .


Timers don't work. They can call a function from other function, but they can't pass the parameters because of a bug.
The only solution for now is make your own timers xD.
29.04.10 04:50:11 am
Up
gabpro
User
Offline Off
@SDKey
Wow!
Thank you
I owe you one.

I'm trying to do the drop,but i use the "iid" and not "type",so that bug all :x

Thank you again,and a small correction at Gut Bomb...
Spoiler >



And sorry for my badly english
29.04.10 04:33:33 pm
Up
Soja1997
User
Offline Off
as spamming only help me and how not everyone is spamming all have me in the ass

Admin/mod comment:

And spamming will eventually lead to a ban... /Lee
29.04.10 06:24:15 pm
Up
Flacko
User
Offline Off
N-B-K has written:
Timers don't work. They can call a function from other function, but they can't pass the parameters because of a bug.
The only solution for now is make your own timers xD.

Parameters do work, but the function is called twice or sth like that.
30.04.10 12:08:33 am
Up
siuL
User
Offline Off
More >

well i need help with it i need to make it right and on a menu taht just opens for admins (where are localized or in ip or in usgn)
if some1 help me i will really thank for that
Up
Rubenoel
User
Offline Off
I only want help in this, i have put the amx2d on my cs2d and only the first blood sound don't work, and the other question is what show a error of help.lua in console
30.04.10 05:43:39 pm
Up
Caelenn
User
Offline Off
For me it's to hard to understand this lua.
IMG:http://img233.imageshack.us/img233/4059/buttonvrf.jpg
30.04.10 06:42:22 pm
Up
siuL
User
Offline Off
@Khaleed:
i really need help like if i say the cmds please some 1 help
30.04.10 08:39:45 pm
Up
gabpro
User
Offline Off
••I need help(again )••
My save script didn't work,and I dont understand very much how to save or load files with LUA.

It's ok when I save,the file and value saves.

When I use the variable(created by me) after save,it disappears!
It works fine,but if I load the file...BOOM...error =x

•Console message :
"LUA ERROR:[File Directory Here]:64: attempt to [Action Here,like "concatenate field"] "?" (a userdata value)

•Script here :
Spoiler >
30.04.10 10:33:43 pm
Up
0ito
User
Offline Off
I need help to change the limit of setmaxhealth
and to make a zombie class
if someone help me thank
30.04.10 10:55:51 pm
Up
Lee
Moderator
Offline Off
@gabpro: Userdata are basically Lua objects that wraps around native C structures. The File object is a non-native Lua object and is thus userdata:

Code:
1
2
3
f = io.open('sys/lua/saved/'..player(id,"usgn")..'.txt','r')
     if f then
          RPTransition(id,f)

(For both instances of this happening)

Code:
1
2
3
4
5
function RPTransition(id,f)
     rp_cr[id] = f
     ...
     parse('hudtxt2 ... '..rp_cr[id]..'" .... ')
end


in which case, rp_cr[id] is a File object (classified as userdata)

Change
Code:
1
RPTransition(id,f)

to
Code:
1
RPTransition(id,f:read("*all"))


Also, look out for mixups between local and global variable.
01.05.10 12:15:44 am
Up
gabpro
User
Offline Off
Thanks Lee

The code RPTransition(id,f:read("*all")) worked for me

I try to do something similar,but I fail =x
Spoiler >

Really thank you,dude!
01.05.10 01:06:48 am
Up
0ito
User
Offline Off
I need help to change the limit of setmaxhealth
and to make a zombie class
if someone help me thank
01.05.10 01:10:59 am
Up
Admir
User
Offline Off
0ito has written:
I need help to change the limit of setmaxhealth


you can't change setmaxhealth limit, the max limit is 250 only.
My curse will sail against the wind and enrage the earth.
01.05.10 09:41:22 am
Up
KINGGOLDrus
User
Offline Off
How to open the website on LUA?
To the start Previous 1 2 ... 195 196 197 ... 338 339 Next To the start