Forum

> > CS2D > Scripts > Starkkz's Admin Script 0.1.5 error
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Starkkz's Admin Script 0.1.5 error

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Starkkz's Admin Script 0.1.5 error

ead
User Off Offline

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

alt Re: Starkkz's Admin Script 0.1.5 error

VADemon
User Off Offline

Zitieren
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

alt Re: Starkkz's Admin Script 0.1.5 error

GeoB99
Moderator Off Offline

Zitieren
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"
1× editiert, zuletzt 02.05.15 20:49:28
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht