My Rpg Type of Forum
Posted: Sun Oct 23, 2005 1:51 am
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..
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?
Code: Select all
//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;
}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?