Forum

> > CS2D > Scripts > Some one fix ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Some one fix ?

3 replies
To the start Previous 1 Next To the start

old Some one fix ?

_Vava_
User Off Offline

Quote
1
2
3
4
5
6
7
zm_class_name = {"Classic Zombie (none)","Classic Zombie","Raptor Zombie","Poison Zombie","Fat Zombie","Leech Zombie","Big Zombie","Big & Fat Zombie","Runner Zombie","Nemesis"}

function Classzm(id)
menu(id,"Zombie Class (HP/Speed/Kockback),"..zm_class_name[2].."|=Balanced=,"..zm_class_name[3].."|"..zm_health_lvl[3].."/"..zm_speed_lvl[3].."/"..12.5*zm_knock_lvl[3].."%,"..zm_class_name[4].."|"..zm_health_lvl[4].."/"..zm_speed_lvl[4].."/"..12.5*zm_knock_lvl[4].."%,"..zm_class_name[5].."|"..zm_health_lvl[5].."/"..zm_speed_lvl[5].."/"..12.5*zm_knock_lvl[5].."%,"..zm_class_name[6].."|"..zm_health_lvl[6].."/"..zm_speed_lvl[6].."/"..12.5*zm_knock_lvl[6]..","..zm_class_name[7].."|"..zm_health_lvl[7].."/"..zm_speed_lvl[7].."/"..12.5*zm_knock_lvl[7].."%,"..zm_class_name[8].."|"..zm_health_lvl[8].."/"..zm_speed_lvl[8].."/"..12.5*zm_knock_lvl[8].."%,"..zm_class_name[9].."|"..zm_health_lvl[9].."/"..zm_speed_lvl[9].."/"..12.5*zm_knock_lvl[9].."%")
end

LUA Error: sys/lua/ZombiePlagueV1/server.lua:6: attempt to perform arithmetic on field '?'(a nil value)

old Re: Some one fix ?

Rainoth
Moderator Off Offline

Quote
1
/"..12.5*zm_knock_lvl[3].."
1
/".. 12.5*zm_knock_lvl[3].."
Try to change to that.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview