PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello people this is my first post and I thought I would pose a question to all of you. I am running PunBB and none of the people on there forum know what I'm trying to do I have installed cashmod and am using that as "xp" for the game. When you submit posts the xp goes up and when you reach a certain amount of xp your level goes up now the way I thought to do this would be..
//My Variables
//$cash==the xp
//$xp==xp till next level
//lvl == current level
if ($cash<"20"){
$lvl=="1";
$rxp=="20"-$cash;
}
else if ($cash>="40"){
$lvl==$lvl+1
$rxp=="20"-$cash;
}
ETC.
See I cant see how it doesn't work although i am a newb it all sounds write but the syntax is probly wrong also I'm not realy sure how to add $lvl and $xp to the database when a post is submited or a new topic.
Any help?