Forum




PS. I use Translator ;s http://www.translatica.pl/
Admin/mod comment
don't use translators. it leads to crappy text which makes no sense... read the rules... /DCLUA ERROR: sys/lua/rp.lua:135 attempt to index field '?' (a number value)
How do i fix it?

try read the previous post on page 1
LUA ERROR: sys/lua/rp.lua:155: ')' expected near 'do'

ZzZz has written
thx but now it says
LUA ERROR: sys/lua/rp.lua:155: ')' expected near 'do'

LUA ERROR: sys/lua/rp.lua:155: ')' expected near 'do'

you have an error in 155 Store
Szkieletor has written
Another question concerning this script. I'd like people to be able to build. I tried setting money to 5000 on buildattempt, but I don't fully understand the scripting, so I ended up breaking the script. Can you help me?
samething here, ppl cant build anything


unajes has written
you have an error in 155 Store
ZzZz has written
thx but now it says
LUA ERROR: sys/lua/rp.lua:155: ')' expected near 'do'

LUA ERROR: sys/lua/rp.lua:155: ')' expected near 'do'

you have an error in 155 Store
How do i fix that?
if not difficult to write a script that CT was only admins on rсon
edited 1×, last 13.05.10 09:44:04 pm


But i have one BIG problem. I don't know what you want i do to use the lua? And what do u mean with dedicated server.
Please can you learn me a bit longer or can you sent me the Lua_file to me?
By Alex


KenVo has written
how can I make more car and a car menu? 

I made more cars for making copies of carscript and replacing CARS and cars with something other, like SLOWCARS, fastcars. But I'm sure there's another way, more optimized.
weiwen has written
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("minute","RPminute") function RPminute() 	for _, id in ipairs(player(0, 'table') do 		if not player(id, 'idle') then 			addmoney(id, 1000) 		end 	end 	--msg('Payday! Everyone gets $1000') end
This is the best solution!
To this error: That means, that you maybe forgot to write a ')' behind the condition. (btw: you can write it, but don't need to) Or maybe you changed the code unintentional.
What's wrong?
P.S. How do you know :number: is where?
Alex_Aaa789 has written
LUA ERROR: RP_money.lua :135:,:142:,:5:,:150: attempt to index field '?' (a nil value)
What's wrong?
P.S. How do you know :number: is where?
What's wrong?
P.S. How do you know :number: is where?
This type of error is one of the hardest because the error is not in this line. It's everywhere in the script. So look what variable/array is compared and check all appearences of this variable/array. If you don't know lua, someone else must help you. If it work with a Save System, try to delete all savedata. Maybe there are corrupt. But there are so many reasons for it, that I can't help you. Sorry.
unajes has written
people how to fix my second added 1k but disappears in the total amount does not drip
i haz the same problem ;(((