Forum

> > CS2D > Scripts > I have a problem in a roleplay script...
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch I have a problem in a roleplay script...

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt I have a problem in a roleplay script...

ULtiMa
User Off Offline

Zitieren
Hi guys i`ve edited the Blocker.tk Citylife script only the drop script....then i get this error

[20:34:36] LUA ERROR: sys/lua/server.lua:873: 'end' expected (to close 'for' at line 870) near 'else'

this is the script
Spoiler >

alt Re: I have a problem in a roleplay script...

DannyDeth
User Off Offline

Zitieren
Do you need it or do you want it? By the looks of things you don't have a dedicated server just waiting for you to put some form of script on it. Just look for an if or something that has no end. I hate RP scripts altogether, and so will refrain from hurting my eyes on code that just makes newbies more numerous.

alt Re: I have a problem in a roleplay script...

Robotic-Brain
User Off Offline

Zitieren
I don't took a close look but i found 2 errors:

1
2
3
4
5
6
elseif sel == 5 then
	if rp_money[id]>= 10000 then
			parse("spawnitem 68 "..x.." "..y)
			rp_money[id]=rp_money[id]-10000
		end  <- HERE not needed
	else

1
2
3
4
5
6
elseif sel == 7 then
	if rp_money[id]>= 100000 then
			parse("spawnitem 56 "..x.." "..y)
			rp_money[id]=rp_money[id]-100000
		end  <- HERE not needed
	else

I just looked at the tabs so i'm not shure if that's all
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht