Forum

> > CS2D > Scripts > returns false
Forums overviewCS2D overview Scripts overviewLog in to reply

English returns false

1 reply
To the start Previous 1 Next To the start

old closed returns false

EnderCrypt
User Off Offline

Quote
the code
1
if player(i,"speedmood") < -10 then

gives error
LUA ERROR: sys/lua/anti speedhack.lua:130: attempt to compare boolean with number

i would guess its cause i doesent exist and it returns false right?

now the problem is i exists cause

1
2
3
4
if player(i,"exists") then
if player(i,"speedmood") < -10 then
end
end

(that is only a piece of my code, but its pretty much same thing)

now can anyone say why "player(i,"speedmood")"
gives error

i need this to get my antispeedhacking lua that actually supports teleporters to work

edit: oh wait.... lol 2 "o" in speedmod thats wrong... my fail.. lol
edited 1×, last 05.06.11 12:23:37 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview