Forum

> > CS2D > Scripts > Scripts useful for RP (money & cars)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripts useful for RP (money & cars)

44 Antworten
Seite
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang

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

Szkieletor
User Off Offline

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

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

Soja1997
User Off Offline

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

don't use translators. it leads to crappy text which makes no sense... read the rules... /DC

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

Rafaelns18
User Off Offline

Zitieren
Szkieletor hat geschrieben
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

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

ZzZz
User Off Offline

Zitieren
unajes hat geschrieben
ZzZz hat geschrieben
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?

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

unajes
User Off Offline

Zitieren
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
1× editiert, zuletzt 13.05.10 21:44:04

alt Don't Work?

Promaster
User Off Offline

Zitieren
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

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

Szkieletor
User Off Offline

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

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

Jermuk
User Off Offline

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

alt Money lua error

Alex_Aaa789
User Off Offline

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

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

Jermuk
User Off Offline

Zitieren
Alex_Aaa789 hat geschrieben
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.
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht