Browser MMO Video #17
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video #17
Ohhhh, I'm sorry. I forgot that your db connection code has to be changed to mysqli as well, or else it considers that you dont have a mysqli db connection.
The indelible lord of tl;dr
Re: Video #17
hmm....this level up thing is getting on my nerves... Maybe I'll have to make an auto level up thing in the statpanel.php then add a credit field and be able to spend it on a stat point? Would that work?
EDIT:
I put this in stat panel:
so it will just update if the player has the exp required. now I'm getting the same thing: parse error... it says it's on the mysql_query line. Maybe there is something wrong with the update player........This is really really irritating.
EDIT2:...........................................................oh my gosh......................................................
I uploaded it to my website and uploaded the data base real quick just to see if it was something wrong with my server instead of the code. It gave me: Parse error: syntax error, unexpected '=' in public_html/phpinclude/statpanel.php on line 12...
UNEXPECTED '='!!!!!! I had an equal between the mysql_query""=""($updateplayer)..............it works fine now...lol....I can't believe we didn't see that
EDIT:
I put this in stat panel:
Code: Select all
$playerid = $playerinfo3['id'];
$level = $playerinfo3['level'];
$expneeded = ($playerinfo3['level'] * 100) * $playerinfo3['level'];
if ($playerinfo3['exper'] >= $expneeded)
{
$updateplayer="update players set level=level+1 where id='$playerid'";
mysql_query=($updateplayer) or die("Could not level up.");
}
EDIT2:...........................................................oh my gosh......................................................
I uploaded it to my website and uploaded the data base real quick just to see if it was something wrong with my server instead of the code. It gave me: Parse error: syntax error, unexpected '=' in public_html/phpinclude/statpanel.php on line 12...
UNEXPECTED '='!!!!!! I had an equal between the mysql_query""=""($updateplayer)..............it works fine now...lol....I can't believe we didn't see that
Coding - Unity3d JS, PHP, and small amount of C#.
Art stuff - GIMP, Blender
Art stuff - GIMP, Blender
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #17
hehe glad you figured it out, nice work
-
- Posts: 127
- Joined: Mon Jan 03, 2011 5:38 am
Re: Video #17
What do I do if I want to make it so they can increase the which ever stat they want five times each level?
-
- Posts: 261
- Joined: Wed Apr 28, 2010 8:35 am
Re: Video #17
I think its only for the amount of level up points available to be distributed.pretender5552 wrote:What do I do if I want to make it so they can increase the which ever stat they want five times each level?

-
- Posts: 2
- Joined: Mon Mar 21, 2011 3:27 am
Re: Video #17
the source files are no longer available,,
i know i am behind everyone, only just recently started here and following tutorial,
can someone help me with the files i need,,for vid 17 and vid 17?
thx
i know i am behind everyone, only just recently started here and following tutorial,
can someone help me with the files i need,,for vid 17 and vid 17?
thx
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #17
download video 21 or 20's files