Page 4 of 4
Re: Video #17
Posted: Sat Feb 13, 2010 7:11 am
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.
Re: Video #17
Posted: Sat Feb 13, 2010 10:10 pm
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
Re: Video #17
Posted: Sun Feb 14, 2010 3:39 pm
by hallsofvallhalla
hehe glad you figured it out, nice work
Re: Video #17
Posted: Wed Jan 12, 2011 9:41 am
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?
Re: Video #17
Posted: Wed Jan 12, 2011 3:29 pm
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.

Re: Video #17
Posted: Wed Mar 23, 2011 10:14 pm
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
Re: Video #17
Posted: Thu Mar 24, 2011 1:05 am
by hallsofvallhalla
download video 21 or 20's files