Browser MMO Video #17

Location of the Videos
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video #17

Post by Jackolantern »

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
User avatar
Zerk
Posts: 58
Joined: Wed Jan 20, 2010 2:59 am

Re: Video #17

Post by Zerk »

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:

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.");
   }
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
Coding - Unity3d JS, PHP, and small amount of C#.
Art stuff - GIMP, Blender
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #17

Post by hallsofvallhalla »

hehe glad you figured it out, nice work
pretender5552
Posts: 127
Joined: Mon Jan 03, 2011 5:38 am

Re: Video #17

Post by pretender5552 »

What do I do if I want to make it so they can increase the which ever stat they want five times each level?
ConceptDestiny
Posts: 261
Joined: Wed Apr 28, 2010 8:35 am

Re: Video #17

Post by ConceptDestiny »

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?
I think its only for the amount of level up points available to be distributed. :)
Realitycheck
Posts: 2
Joined: Mon Mar 21, 2011 3:27 am

Re: Video #17

Post by Realitycheck »

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
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #17

Post by hallsofvallhalla »

download video 21 or 20's files
Post Reply

Return to “Older Browser MMO Videos”