Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Ta©ti Tac0Z

hallo i don't now how to make a post so i will do it here i -- event.pull problem

Question

Posted

srry for my English. i made a server program like a file server program and in the start it work fine but when i addet more to it is says to my:

/server: 99: attempt to call field 'pull' (a nil value):

stack traceback:

/server:99: in function 'main'

/server:309: in function 'main'

/server:314: in main chunk

[c]: in function 'xpcall'

machine:751: in function 'xpcall'

/lib/process.lua:78: in function </lib/process.lua:71>

stack traceback:

[c]: in function 'error'

/lib/process.lua:92: in function <lib process.lua:71>

 

if some one need a pastepin to help me the just sey it

 

 

2016-12-07_22.15.36.png

 

 

 

2016-12-07_22.16.56.png

 

 

 

 

6 answers to this question

Recommended Posts

  • 0
Posted

Like MoonlightOwl said, the issue is likely that you're overwriting "event" on line 99.  You can't use the variable name "event" twice in the same script cause setting it the second time will overwrite the first.

  • 1
Posted

Have you imported the `event` library (local event = require('event'))?

Source code on Pastebin may be helpful, yep =)

UPD.

And you seem to override the `event` variable in the line:

event, p2, x, y, p5, input = event.pull(..)

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.