Jump to content




Bank Server Software


  • You cannot reply to this topic
2 replies to this topic

#1 AssossaGPB

  • Members
  • 126 posts
  • LocationFlorida, USA

Posted 11 June 2014 - 06:17 PM

I am writing a bank server/client for my server, but it keeps throwing this error: 40:'<eof>' expected. I'm pretty sure that that means I have one too many ends, but cant figure out where it is. Please Help!

Spoiler


#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 11 June 2014 - 06:26 PM

Your problem is here (look closer at the ifs):

if (x%f) == 0 then return false end
  if (x%(f+2)) == 0 then return false end
  f = f + 6;
end

Also, there is another problem I noticed. In Lua you cannot do '!variable', instead you do 'not variable':

num1=4
while !isPrime(num1) do --<< here
  num1=math.random(0000,9999)


#3 Blue

  • Members
  • 309 posts
  • LocationGlass/UX/main.lua

Posted 11 June 2014 - 06:28 PM

We can't see the line numbers if you don't use pastebin.

EDIT: :ph34r:

Edited by Glass Systems, 11 June 2014 - 06:28 PM.






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users