Re: RealityRP [RP][C#][PHP][R63]
Quote:
Originally Posted by
Makarov
Next year..? What are you doing that will take so long?
Probably a mega ginormous shit
http://www.youtube.com/watch?feature...lr7JhPow#t=50s
http://www.youtube.com/watch?feature...lr7JhPow#t=50s
Re: RealityRP [RP][C#][PHP][R63]
Quote:
Originally Posted by
Makarov
Next year..? What are you doing that will take so long?
Quote:
Originally Posted by
Hejula
this.
Re: RealityRP [RP][C#][PHP][R63]
So you're already doubting your own project.
Re: RealityRP [RP][C#][PHP][R63]
Quote:
Originally Posted by
Makarov
So you're already doubting your own project.
The video looked fun? :D
Anyway, the reason its taking is so long is because i'm creating everything really secure so nobody can hack into it, Also i'm optimizing the server so it runs with minimal CPU and RAM :)
Re: RealityRP [RP][C#][PHP][R63]
Quote:
Originally Posted by
Divide
The video looked fun? :D
Anyway, the reason its taking is so long is because i'm creating everything really secure so nobody can hack into it, Also i'm optimizing the server so it runs with minimal CPU and RAM :)
Sounds good to me!
Re: RealityRP [RP][C#][PHP][R63]
Take your time :) - I'm sure we would prefer something that hasn't been rushed!
Re: RealityRP [RP][C#][PHP][R63]
True Best Having Something Done Right.
Re: RealityRP [RP][C#][PHP][R63]
It's party time?!
http://i50.tinypic.com/n4juch.png
Oh damn, now ive posted my test hotel link and everything :3
Re: RealityRP [RP][C#][PHP][R63]
Re: RealityRP [RP][C#][PHP][R63]
I don't like how the client handles /getxp and /gethealth separately and it returns the raw HTML code. You'd be better off using a JSON object; it's smaller and uses less resources.
Code:
{'hp': 100, 'xp': 30}
Re: RealityRP [RP][C#][PHP][R63]
Divide do you want me to make you a proper control furni thing for that equipment thingy that your using now.
(Instead of the space thing)
Re: RealityRP [RP][C#][PHP][R63]
Quote:
Originally Posted by
wy479
Divide do you want me to make you a proper control furni thing for that equipment thingy that your using now.
(Instead of the space thing)
Dont have a clue what ur going on about..
Quote:
Originally Posted by
Funixeh
I don't like how the client handles /getxp and /gethealth separately and it returns the raw HTML code. You'd be better off using a JSON object; it's smaller and uses less resources.
Code:
{'hp': 100, 'xp': 30}
Get me the javascript code? :D
Re: RealityRP [RP][C#][PHP][R63]
Quote:
Originally Posted by
Divide
Dont have a clue what ur going on about..
Get me the javascript code? :D
Code for what? Just get the values from the object.
This will work, but I'm not a JavaScript person, so 'response' would be the JSON you get back from a URL like /getstats or something like that. I assume you're using some jQuery wizardry for real-time updating so document.write() won't work; but you'll know what to do.
Code:
response = {'hp': 100, 'xp': 30}
document.write('<div id="healthbar" style="height: ' + response['hp'] + '%;"></div>')
document.write('<div id="xpbar" style="height: ' + response['xp'] + '%;"></div>')
Re: RealityRP [RP][C#][PHP][R63]
Quote:
Originally Posted by
Funixeh
Code for what? Just get the values from the object.
This will work, but I'm not a JavaScript person, so 'response' would be the JSON you get back from a URL like /getstats or something like that. I assume you're using some jQuery wizardry for real-time updating so document.write() won't work; but you'll know what to do.
Code:
response = {'hp': 100, 'xp': 30}
document.write('<div id="healthbar" style="height: ' + response['hp'] + '%;"></div>')
document.write('<div id="xpbar" style="height: ' + response['xp'] + '%;"></div>')
Urm, Made my hotel fuck up :P
The background was white (Like the client bg was white as if I had a Colour Toner..)
Re: RealityRP [RP][C#][PHP][R63]
Quote:
Originally Posted by
Divide
Urm, Made my hotel fuck up :P
The background was white (Like the client bg was white as if I had a Colour Toner..)
You weren't supposed to use that. Just change the JS in your client.
Put simply, create a callback URL (like /gethealth and /getxp) into /stats or something similar, and make it return the stats of the logged in user, something like:
But of course replacing x with the appropriate values. Then get the contents of /stats or whatever inside your client page, store it into a variable, and use jQuery to update the stat bars using response['xp'] and response['hp'] (assuming the variable you saved is called response).