Blaire
|
  |
| Joined: 23 Dec 2007 |
| Total Posts: 406 |
|
|
| 02 Jan 2016 09:05 AM |
$grouprank = file_get_contents('http://www.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid='.$_SESSION['AdminId'].'&groupid=199219',true); if (intval($AdminRank,true) > intval($grouprank,true)) { echo $AdminRank.$grouprank; echo 'AdminRank is bigger'; }
1516AdminRank is bigger ^output i have no idea whats wrong
|
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 02 Jan 2016 09:10 AM |
| obviously AdminRank is greater than grouprank |
|
|
| Report Abuse |
|
|
Blaire
|
  |
| Joined: 23 Dec 2007 |
| Total Posts: 406 |
|
| |
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 02 Jan 2016 09:18 AM |
so it's not 151 and 6 ok
are AdminRank and grouprank not integers, so you need to use intval?
the second argument, base, should be an int
anyways try echoing the result of intval |
|
|
| Report Abuse |
|
|
Blaire
|
  |
| Joined: 23 Dec 2007 |
| Total Posts: 406 |
|
|
| 02 Jan 2016 10:43 AM |
^Same values 1516AdminRank is bigger
|
|
|
| Report Abuse |
|
|