Jump to content


remiX's Content

There have been 469 items by remiX (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#166574 ComputerCraft emulator?

Posted by remiX on 01 March 2014 - 03:20 PM in General

Ah cool, Thanks!



#166571 ComputerCraft emulator?

Posted by remiX on 01 March 2014 - 01:57 PM in General

Is there currently any working emulators for CC?
Just checked CCEmu and CCDesk and both projects have gone dead o.o



#128524 Unwanted nil variable.

Posted by remiX on 23 June 2013 - 08:00 AM in Ask a Pro

What line is the error popping up on?>



#124919 Menu Help

Posted by remiX on 09 June 2013 - 04:06 AM in Ask a Pro

made this a while ago



#124918 Safe Login Code

Posted by remiX on 09 June 2013 - 04:02 AM in Ask a Pro

So... what is the problem?



#124598 Touch Buttons

Posted by remiX on 08 June 2013 - 05:03 AM in Ask a Pro

What event is touch_screen? o.O



#124591 Function with variables

Posted by remiX on 08 June 2013 - 04:45 AM in Ask a Pro

local x = read()
local f = loadstring(x)
local ok, err = pcall(f)
if not ok then
-- error with typed code
end

I think that's right.. :P



#123328 Getting First or Last Digit

Posted by remiX on 03 June 2013 - 01:28 PM in Ask a Pro

I'd go with Lyqyd's approach as I think it's the easiest to understand.



#123326 [LUA][Error] attempt to call boolean?

Posted by remiX on 03 June 2013 - 01:25 PM in Ask a Pro

Well
elseif p1 == p then
        if shop == false then
          shop = true
          shop()
you define shop to be true and then call it as a function... Hence attempt to call boolean...



#119166 Login using PHP

Posted by remiX on 20 May 2013 - 01:18 AM in Ask a Pro

Your database needs to have these columns:
id - auto_increment, primary, integer
username - text
password - text

What headings does it have at the moment?



#118841 Login using PHP

Posted by remiX on 18 May 2013 - 11:25 PM in Ask a Pro

Oh woops, change
if (!$result || mysql_num_rows($result) == 0) {
to
if ($result and mysql_num_rows($result) > 0) {



#118794 How to use OOP?

Posted by remiX on 18 May 2013 - 07:24 PM in Ask a Pro

Check out Bubba's video thread and this OOP in Lua Thread



#118793 Login using PHP

Posted by remiX on 18 May 2013 - 07:22 PM in Ask a Pro

What? it doesn't re-add the user if the user already exists.



#118664 Login using PHP

Posted by remiX on 18 May 2013 - 08:48 AM in Ask a Pro

Thingy does not like MySQL? What do you mean? What is it doing?



#118462 IM A FATHER!

Posted by remiX on 17 May 2013 - 01:55 PM in General

Congratz

View PostFreack100, on 17 May 2013 - 12:36 PM, said:

Congratz!

I have a funny pic for you too ^_^

%20http://www.gbpics24.eu/data/media/21/lustige4.jpg

I see that more of a cute picture than funny :P



#118346 need help sending tables across rednet

Posted by remiX on 17 May 2013 - 01:04 AM in Ask a Pro

When doing Status = getStatus()
add this after:
print( type( Status ) )
tell us what it prints



#118342 Login using PHP

Posted by remiX on 17 May 2013 - 12:31 AM in Ask a Pro

Never knew you could do that on webhost :o haha

Registration uses the insert query.
Note: You will need to add some anti-spam method to prevent spam of multiple users being created

LUA:
Spoiler

PHP:

Spoiler

Shout if there are any errors



#118290 Login using PHP

Posted by remiX on 16 May 2013 - 04:38 PM in Ask a Pro

View Post1vannn, on 16 May 2013 - 03:20 PM, said:

View PostremiX, on 16 May 2013 - 08:14 AM, said:

--snip
If the user does not exist in the database, it'll immediately return an error.

LUA:
Spoiler

PHP:
Spoiler

Untested.. tell me if there are any errors :)



#118213 http.post... Question

Posted by remiX on 16 May 2013 - 11:11 AM in Ask a Pro

You were missing an & which SadKingBilly got correct



#118189 Login using PHP

Posted by remiX on 16 May 2013 - 08:14 AM in Ask a Pro

View Post1vannn, on 15 May 2013 - 11:13 PM, said:

1. Write("Username: ")
2. Send to server
3. CC expects a reply

Just send the username?
What must be returned back?

View PostNexus, on 15 May 2013 - 11:53 PM, said:

Here I have the solution for you: my OS! Viewing the source code of the API Nexos, doLogin() function

Good Luck!

EDIT: If you have any questions do not hesitate

He's wanting the php code too.



#118139 Login using PHP

Posted by remiX on 15 May 2013 - 10:27 PM in Ask a Pro

I can help. Fairly easy.

Give me a few more details as to how CC will send / receive the info.

Going to sleep now so will reply later :P



#116962 [Solved] os.pullEventRaw not working with parallel

Posted by remiX on 11 May 2013 - 06:08 AM in Ask a Pro

Small exampe?



#116056 [Solved] Problem with events

Posted by remiX on 07 May 2013 - 12:26 PM in Ask a Pro

Try moving
  local shortcutTimer
  local shortcutTimeout = 0.4
  local shortcutMode = false
out of the while loop, above it



#115228 [Question] A little question :P

Posted by remiX on 04 May 2013 - 09:47 PM in Ask a Pro

View PostFreack100, on 04 May 2013 - 05:49 PM, said:

What did you mean with "forever"?

the anti-terminate:
OldPullEvent = os.pullEvent --backup the os.pullEvent
os.pullEventRaw -- override the os.pullEvent
--Put this code at the top of your program

--If you want to disable the anti-terminating, do this:
os.pullEvent = OldPullEvent

I hope It's helpfull for you :)/>
Second line should be
os.pullEvent = os.pullEventRaw

As for the permanent text, just have it print and if you don't want it to stop and have it so you can type add this to the end:
while true do
    sleep(60)
end



#115205 Doubled last character in Interactive Lua Prompt

Posted by remiX on 04 May 2013 - 06:57 PM in Bugs

View PostShnupbups100, on 04 May 2013 - 04:52 PM, said:

Yeah, I've had this before. Was too lazy to report it.

Exactly the same here xD