Forum

> > CS2D > Scripts > script with player(id,"process") error
Forums overviewCS2D overview Scripts overviewLog in to reply

English script with player(id,"process") error

2 replies
To the start Previous 1 Next To the start

old script with player(id,"process") error

MikuAuahDark
User Off Offline

Quote
hi i know i want to create a script again, but it error again. here my script objective: when bomb is planted, there is a time + the ms time(e.x.: 23:4) on 300x5 and when someone defuse the bomb(when in progress) showed another time(e.x.: with defuse: 18:4 without defusekit: 13:4) at 300x10. but there is a error on
1
player(id,"process")
it says number exepted got nil, but when i check on www.cs2d.com, player(id,"process") is exists, so player(id,"process") is exists?
here my code:
Bomb viewer(in ms) >

the error:
1
LUA ERROR: sys/lua/new  4.lua:45: bad argument #1 to 'player' (number expected, got nil)

old Re: script with player(id,"process") error

EngiN33R
Moderator Off Offline

Quote
There's nothing wrong with the "process" part, it's just there is no id argument for the ms100 hook. God damn it. Add this part in the very beginning of your ms100 function:

1
for _,id in pairs(player(0,"table")) do

And then put an extra end at the end.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview