Forum

> > CS2D > Scripts > Scripts useful for RP (money & cars)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Scripts useful for RP (money & cars)

44 replies
Page
To the start Previous 1 2 3 Next To the start

old Re: Scripts useful for RP (money & cars)

Szkieletor
User Off Offline

Quote
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?

old Re: Scripts useful for RP (money & cars)

Soja1997
User Off Offline

Quote
Even if for heap of 1000 cars and of it everyone will use will look the same
Spoiler >

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... /DC

old Re: Scripts useful for RP (money & cars)

Rafaelns18
User Off Offline

Quote
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 someone know how fix cuz every time says you dont have money ;/ also great script

old Re: Scripts useful for RP (money & cars)

ZzZz
User Off Offline

Quote
unajes has written
ZzZz has written
thx but now it says

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

you have an error in 155 Store

How do i fix that?

old Re: Scripts useful for RP (money & cars)

unajes
User Off Offline

Quote
people how to fix my second added 1k but disappears in the total amount does not drip

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

old Don't Work?

Promaster
User Off Offline

Quote
Hi, I had seen you VERY NICE lua_RP_MOD.
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

old Re: Scripts useful for RP (money & cars)

Szkieletor
User Off Offline

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

old Re: Scripts useful for RP (money & cars)

Jermuk
User Off Offline

Quote
weiwen has written
1
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.

old Money lua error

Alex_Aaa789
User Off Offline

Quote
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?

old Re: Scripts useful for RP (money & cars)

Jermuk
User Off Offline

Quote
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?

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.
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview