Forum

> > CS2D > Scripts > I have a problem in a roleplay script...
Forums overviewCS2D overview Scripts overviewLog in to reply

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

11 replies
To the start Previous 1 Next To the start

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

ULtiMa
User Off Offline

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

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

DannyDeth
User Off Offline

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

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

Robotic-Brain
User Off Offline

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