[advanced search]
Results from the most recent live auction are here.
20 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 03-31-2008, 03:03 PM   · #1
alcapone
NamePros Member
 
Trader Rating: (6)
Join Date: Feb 2005
Posts: 158
NP$: 31.00 (Donate)
alcapone is on a distinguished road
need quick php help

have levels i use in a game of mine it goes per credits added and supporter status in the game everything is working except for level 3 when they added more then 99999 credits addeding more then 99999 credits gives you level 4 in the game but they cant reach level 4 unless they are a supporter so i need to keep them in level 3 level 3 works but only if they didnt add 99999 credit hope you under stand
any help would be great

here is the code im working with

PHP Code:
if(!$l)
{
if(
$creditz[0]==0||$tmp_rows==0)
  
$lvl=1;
else if(
$creditz[0]<40001&&$creditz[0]>0)
  
$lvl=2;
else if(
$creditz[0]<100000&&$creditz[0]>40000)
  
$lvl=3;
else if(
$creditz[0]>99999)
  
$lvl=4;
}
else
{
$lvl=$l;
}
if(
$lvl==1)
$lvlstring="stats.credits=0";
else if(
$lvl==2)
$lvlstring="stats.credits<40001 AND stats.credits>0";
else if(
$lvl==3)
$lvlstring="stats.credits<100000 AND stats.credits>40000";
else if(
$lvl==4)
$lvlstring="stats.credits>99999 AND $tab[pimp].status='Supporter'";
$sSQL = "SELECT count(*) FROM users, stats,$tab[pimp] WHERE users.username = stats.user AND $tab[pimp].code=users.code AND $tab[pimp].networth>'$pmpz[1]' AND stats.round='$round' AND $lvlstring";


Please register or log-in into NamePros to hide ads
__________________
Hostile-Territory
alcapone is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
http://www.mobisitetrader.com/ RealTechNetwork RealTechNetwork
Advertise your business at NamePros
All times are GMT -7. The time now is 08:40 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0