Page 3 of 7

Re: Video #18

Posted: Sun Jan 17, 2010 2:18 am
by darspire
wow durr. thank you zerocomp. lol

Re: Video #18

Posted: Sun Jan 17, 2010 2:52 am
by ZeroComp
yea i had the same problem a while back and iwas freakin out until someone helped me :lol:

Re: Video #18

Posted: Sun Jan 17, 2010 2:57 am
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 :)

Re: Video #18

Posted: Sun Jan 17, 2010 2:59 am
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?

Re: Video #18

Posted: Sun Jan 17, 2010 5:56 am
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.

Re: Video #18

Posted: Sun Jan 17, 2010 7:11 pm
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.

Re: Video #18

Posted: Mon Jan 18, 2010 6:07 am
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.

Re: Video #18

Posted: Mon Jan 18, 2010 9:08 am
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!

Re: Video #18

Posted: Mon Jan 18, 2010 2:36 pm
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.....

Re: Video #18

Posted: Mon Jan 18, 2010 7:16 pm
by ier
hey I've looked at the scripts you can download and ther are many errors correct or not?? :?: :roll: