Browser MMO Video #18

Location of the Videos
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: Video #18

Post by darspire »

wow durr. thank you zerocomp. lol
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Video #18

Post by ZeroComp »

yea i had the same problem a while back and iwas freakin out until someone helped me :lol:
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Video #18

Post by OldRod »

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 :)
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Video #18

Post by ZeroComp »

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
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video #18

Post by Jackolantern »

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?
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.
The indelible lord of tl;dr
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Video #18

Post by ZeroComp »

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
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video #18

Post by Jackolantern »

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.
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.
The indelible lord of tl;dr
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: Video #18

Post by darspire »

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!
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #18

Post by hallsofvallhalla »

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.....
User avatar
ier
Posts: 67
Joined: Sun Jan 10, 2010 7:32 pm

Re: Video #18

Post by ier »

hey I've looked at the scripts you can download and ther are many errors correct or not?? :?: :roll:
Post Reply

Return to “Older Browser MMO Videos”