Browser MMO Video #18
Re: Video #18
wow durr. thank you zerocomp. lol
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
if it doesnt return.....hunt it down and kill it.
Re: Video #18
yea i had the same problem a while back and iwas freakin out until someone helped me 

Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Re: Video #18
It is confusing - if you reference them inside an echo statement, no ' is needed - but any other time, the ' is needed. It's very frustrating till you get the hang of it 

Re: Video #18
yes very confusing. i've been studying php6 lately and noticed one thing they dont use ' they use " now wats up with that?
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video #18
In most places, it is up the coder which they want to use. Although depending on the context, single-quote vs. double-quote can have different effects.ZeroComp wrote:yes very confusing. i've been studying php6 lately and noticed one thing they dont use ' they use " now wats up with that?
The indelible lord of tl;dr
Re: Video #18
double quote gives me syntax errors when I use them like this ["level"] and it really pisses me off when i gotta go back through my code and change ["level"] ["price"] ect. to ['level] ['price]. I guess being used to php 5 and getting into php 6 makes it quite frustrating when you know something in php 5 and php 6 does the same thing as the bit of code you know and changes it into something different.
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video #18
Hmmm...that is very strange, actually, because that is normally a single-quote only location. Maybe scan through the PHP config file to see if it is an option? I know they wouldn't just break everyone's old scripts in PHP6.ZeroComp wrote:double quote gives me syntax errors when I use them like this ["level"] and it really pisses me off when i gotta go back through my code and change ["level"] ["price"] ect. to ['level] ['price]. I guess being used to php 5 and getting into php 6 makes it quite frustrating when you know something in php 5 and php 6 does the same thing as the bit of code you know and changes it into something different.
The indelible lord of tl;dr
Re: Video #18
wow i actually did something myself lol. i made it so that after you register, the reguser page says "thank you for registering (player name).
return to the login page to start playing your (class)
and i made it so it shows the actual amount of hp and sp you have, and i made an experience bar all on statpanel.php. im getting better at this stuff!
return to the login page to start playing your (class)
and i made it so it shows the actual amount of hp and sp you have, and i made an experience bar all on statpanel.php. im getting better at this stuff!
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
if it doesnt return.....hunt it down and kill it.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #18
sweet! thats exactly how most people here got started, by slowly adding new things and trying new stuff to make their games better. Keep going and soon you will be making me look like a novice! wait I am a novice.....
Re: Video #18
hey I've looked at the scripts you can download and ther are many errors correct or not??


