Jump to content

just quick help...


seany123

Recommended Posts

i am making a game and in this battle page i have to write how much exp the winner of a fight gains... which is this...

 

$exploss1 = ($player->level - $enemy->level);

 

but can anyone show me how to make it so the maximun is 10,000??

 

im not quite sure how to do it..

 

something like...

 

$exploss1 = ($player->level - $enemy->level < 10000);

Link to comment
https://forums.phpfreaks.com/topic/147639-just-quick-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.