Forum

> > CS2D > Scripts > Starkkz's Admin Script 0.1.5 error
Forums overviewCS2D overview Scripts overviewLog in to reply

English Starkkz's Admin Script 0.1.5 error

5 replies
To the start Previous 1 Next To the start

old Starkkz's Admin Script 0.1.5 error

ead
User Off Offline

Quote
Hello everyone,

Good'm following this error.

1
LUA ERROR: sys/lua/admin/os.lua:56: attempt to perform arithmetic on field 'cpath' (a string value)

I use CentOS 6 server as more'm unable to run the script because of this problem.

old Re: Starkkz's Admin Script 0.1.5 error

VADemon
User Off Offline

Quote
Replace + with ..
1
2
3
4
5
if string.find(os.name(), "linux") then
	app_start = os.clock()
	package.cpath = package.cpath + ";/usr/lib/lua/5.1/?.so" -- here
	package.path = package.path + ";/usr/lib/lua/5.1/?.lua" -- and here
end

old Re: Starkkz's Admin Script 0.1.5 error

GeoB99
Moderator Off Offline

Quote
I don't find anything that's hard to replace or such.
Just access your VPS by using Filezilla for example, go to the cs2d folder, find the starkkz folder admin script, sys and then open os.lua file and search the 56 to 59:
1
2
package.cpath = package.cpath + ";/usr/lib/lua/5.1/?.so" 
package.path = package.path + ";/usr/lib/lua/5.1/?.lua"

And as you see those + from two lines replace them with .. as user VADemon already pointed this out.

1
2
package.cpath = package.cpath .. ";/usr/lib/lua/5.1/?.so" 
package.path = package.path .. ";/usr/lib/lua/5.1/?.lua"
edited 1×, last 02.05.15 08:49:28 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview