Обучение/Помощь новичкам | Помогите новичку(обновленно)
Александр Сергеевич (12.12.2017 в 21:55)
456675883 , проверь полоска будет по середине или нет
456675883 , проверь полоска будет по середине или нет
да по середине,это и так понятно,даже не нужно проверять...
456675883 , Тогда проблема с выводом опыта игрока.
$forl = round($user['exp']/$exp_up_next_level*100);
Попробуй ещё так, округлит значение до целого числа
$forl = round($user['exp']/$exp_up_next_level*100);
Попробуй ещё так, округлит значение до целого числа
Litput , все равно(
ксати я в файле не найду:
$exp_up_next_level
ксати я в файле не найду:
$exp_up_next_level
456675883 (12.12.2017 в 21:46)
<table width='100%'>
<tbody>
<tr>
<td class='rLevel'>Уровень <?=$user['level']?></td>
<td class='rProgress'>
<div class='rLevelBar'>
<div class='rLevelBarOuter'>
<div class='rLevelBarInner'>
<div class='rLevelProgress' style='width: <?=$forl?>%'>
<div class='rLevelProgressOuter'>
<div class='rLevelProgressInner'>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
Линия опыта стоит на месте,не пойму в чем проблема,зарнее спасибо
<table width='100%'>
<tbody>
<tr>
<td class='rLevel'>Уровень <?=$user['level']?></td>
<td class='rProgress'>
<div class='rLevelBar'>
<div class='rLevelBarOuter'>
<div class='rLevelBarInner'>
<div class='rLevelProgress' style='width: <?=$forl?>%'>
<div class='rLevelProgressOuter'>
<div class='rLevelProgressInner'>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
Линия опыта стоит на месте,не пойму в чем проблема,зарнее спасибо
эй...исчезни блед с сайта. Люди!. Это кто?..че за бармалей тут?.
del
________
посл. ред. 13.12.2017 в 10:49; всего 1 раз(а); by Zlodey7777
________
посл. ред. 13.12.2017 в 10:49; всего 1 раз(а); by Zlodey7777
456675883 ,
немного не так можно сделать ты выбрал сложный путь
echo'<table style="width:100%"><tr> ';
echo'<td style="width:33%" class="link">Рейтинг<br><img src="rayt.php?rat='.(int)$user['ray'].'" alt="" /></td></tr></table>';
ТЕПЕРЬ ДЕЛАЕМ ФАИЛ rayt.php
$rat=(int)$_REQUEST['rat'];
$limit=(int)$_REQUEST['limit'];
$rats=$rat;
if($rat>=100){$rats=99;}
if($rat>100){$rat=100;}
if($limit==""){$limit=50;}
if($limit>100){$limit=100;}
header("Content-type: image/gif");
$im = imageCreateFromGIF("img/rayt.gif");
//-----------------------------------------------------------//
$color = imagecolorallocate($im, 234, 237, 237);
$color2 = imagecolorallocate($im, 227, 222, 222);
$color3 = imagecolorallocate($im, 204, 200, 200);
$color4 = imagecolorallocate($im, 185, 181, 181);
$color5 = imagecolorallocate($im, 197, 195, 195);
imagefilledrectangle ($im, 2, 1, 99, 2, $color);
imagefilledrectangle ($im, 1, 3, 100, 4, $color2);
imagefilledrectangle ($im, 1, 5, 100, 6, $color3);
imagefilledrectangle ($im, 1, 7, 100, 8, $color4);
imagefilledrectangle ($im, 2, 9, 99, 10, $color5);
//-----------------------------------------------------------//
$color = imagecolorallocate($im, 255, 204, 204);
$color2 = imagecolorallocate($im, 255, 153, 153);
$color3 = imagecolorallocate($im, 255, 102, 102);
$color4 = imagecolorallocate($im, 255, 51, 51);
$color5 = imagecolorallocate($im, 255, 102, 102);
$color6 = imagecolorallocate($im, 0, 0, 0);
if($rat>0){
imagefilledrectangle ($im, 2, 1, $rats, 2, $color);
imagefilledrectangle ($im, 1, 3, $rat, 4, $color2);
imagefilledrectangle ($im, 1, 5, $rat, 6, $color3);
imagefilledrectangle ($im, 1, 7, $rat, 8, $color4);
imagefilledrectangle ($im, 2, 9, $rats, 10, $color5);
}
ImageString($im, 1, 78, 2, "$rat%", $color6);
ImageGIF($im);
немного не так можно сделать ты выбрал сложный путь
echo'<table style="width:100%"><tr> ';
echo'<td style="width:33%" class="link">Рейтинг<br><img src="rayt.php?rat='.(int)$user['ray'].'" alt="" /></td></tr></table>';
ТЕПЕРЬ ДЕЛАЕМ ФАИЛ rayt.php
$rat=(int)$_REQUEST['rat'];
$limit=(int)$_REQUEST['limit'];
$rats=$rat;
if($rat>=100){$rats=99;}
if($rat>100){$rat=100;}
if($limit==""){$limit=50;}
if($limit>100){$limit=100;}
header("Content-type: image/gif");
$im = imageCreateFromGIF("img/rayt.gif");
//-----------------------------------------------------------//
$color = imagecolorallocate($im, 234, 237, 237);
$color2 = imagecolorallocate($im, 227, 222, 222);
$color3 = imagecolorallocate($im, 204, 200, 200);
$color4 = imagecolorallocate($im, 185, 181, 181);
$color5 = imagecolorallocate($im, 197, 195, 195);
imagefilledrectangle ($im, 2, 1, 99, 2, $color);
imagefilledrectangle ($im, 1, 3, 100, 4, $color2);
imagefilledrectangle ($im, 1, 5, 100, 6, $color3);
imagefilledrectangle ($im, 1, 7, 100, 8, $color4);
imagefilledrectangle ($im, 2, 9, 99, 10, $color5);
//-----------------------------------------------------------//
$color = imagecolorallocate($im, 255, 204, 204);
$color2 = imagecolorallocate($im, 255, 153, 153);
$color3 = imagecolorallocate($im, 255, 102, 102);
$color4 = imagecolorallocate($im, 255, 51, 51);
$color5 = imagecolorallocate($im, 255, 102, 102);
$color6 = imagecolorallocate($im, 0, 0, 0);
if($rat>0){
imagefilledrectangle ($im, 2, 1, $rats, 2, $color);
imagefilledrectangle ($im, 1, 3, $rat, 4, $color2);
imagefilledrectangle ($im, 1, 5, $rat, 6, $color3);
imagefilledrectangle ($im, 1, 7, $rat, 8, $color4);
imagefilledrectangle ($im, 2, 9, $rats, 10, $color5);
}
ImageString($im, 1, 78, 2, "$rat%", $color6);
ImageGIF($im);
это я тебе сделал к примеру мода которого я делал
http://bym.guru/downloads/view/72523
можешь даже код там вырвать
http://bym.guru/downloads/view/72523
можешь даже код там вырвать
Symba (12.12.2017 в 22:10)
456675883 (12.12.2017 в 21:46)
<table width='100%'>
<tbody>
<tr>
<td class='rLevel'>Уровень <?=$user['level']?></td>
<td class='rProgress'>
<div class='rLevelBar'>
<div class='rLevelBarOuter'>
<div class='rLevelBarInner'>
<div class='rLevelProgress' style='width: <?=$forl?>%'>
<div class='rLevelProgressOuter'>
<div class='rLevelProgressInner'>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
Линия опыта стоит на месте,не пойму в чем проблема,зарнее спасибо
эй...исчезни блед с сайта. Люди!. Это кто?..че за бармалей тут?.
456675883 (12.12.2017 в 21:46)
<table width='100%'>
<tbody>
<tr>
<td class='rLevel'>Уровень <?=$user['level']?></td>
<td class='rProgress'>
<div class='rLevelBar'>
<div class='rLevelBarOuter'>
<div class='rLevelBarInner'>
<div class='rLevelProgress' style='width: <?=$forl?>%'>
<div class='rLevelProgressOuter'>
<div class='rLevelProgressInner'>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
Линия опыта стоит на месте,не пойму в чем проблема,зарнее спасибо
эй...исчезни блед с сайта. Люди!. Это кто?..че за бармалей тут?.
тема не в свободном общении,так что слейся..
DogMat (12.12.2017 в 22:10)
456675883 ,
немного не так можно сделать ты выбрал сложный путь
echo'<table style="width:100%"><tr> ';
echo'<td style="width:33%" class="link">Рейтинг<br><img src="rayt.php?rat='.(int)$user['ray'].'" alt="" /></td></tr></table>';
ТЕПЕРЬ ДЕЛАЕМ ФАИЛ rayt.php
$rat=(int)$_REQUEST['rat'];
$limit=(int)$_REQUEST['limit'];
$rats=$rat;
if($rat>=100){$rats=99;}
if($rat>100){$rat=100;}
if($limit==""){$limit=50;}
if($limit>100){$limit=100;}
header("Content-type: image/gif");
$im = imageCreateFromGIF("img/rayt.gif");
//-----------------------------------------------------------//
$color = imagecolorallocate($im, 234, 237, 237);
$color2 = imagecolorallocate($im, 227, 222, 222);
$color3 = imagecolorallocate($im, 204, 200, 200);
$color4 = imagecolorallocate($im, 185, 181, 181);
$color5 = imagecolorallocate($im, 197, 195, 195);
imagefilledrectangle ($im, 2, 1, 99, 2, $color);
imagefilledrectangle ($im, 1, 3, 100, 4, $color2);
imagefilledrectangle ($im, 1, 5, 100, 6, $color3);
imagefilledrectangle ($im, 1, 7, 100, 8, $color4);
imagefilledrectangle ($im, 2, 9, 99, 10, $color5);
//-----------------------------------------------------------//
$color = imagecolorallocate($im, 255, 204, 204);
$color2 = imagecolorallocate($im, 255, 153, 153);
$color3 = imagecolorallocate($im, 255, 102, 102);
$color4 = imagecolorallocate($im, 255, 51, 51);
$color5 = imagecolorallocate($im, 255, 102, 102);
$color6 = imagecolorallocate($im, 0, 0, 0);
if($rat>0){
imagefilledrectangle ($im, 2, 1, $rats, 2, $color);
imagefilledrectangle ($im, 1, 3, $rat, 4, $color2);
imagefilledrectangle ($im, 1, 5, $rat, 6, $color3);
imagefilledrectangle ($im, 1, 7, $rat, 8, $color4);
imagefilledrectangle ($im, 2, 9, $rats, 10, $color5);
}
ImageString($im, 1, 78, 2, "$rat%", $color6);
ImageGIF($im);
456675883 ,
немного не так можно сделать ты выбрал сложный путь
echo'<table style="width:100%"><tr> ';
echo'<td style="width:33%" class="link">Рейтинг<br><img src="rayt.php?rat='.(int)$user['ray'].'" alt="" /></td></tr></table>';
ТЕПЕРЬ ДЕЛАЕМ ФАИЛ rayt.php
$rat=(int)$_REQUEST['rat'];
$limit=(int)$_REQUEST['limit'];
$rats=$rat;
if($rat>=100){$rats=99;}
if($rat>100){$rat=100;}
if($limit==""){$limit=50;}
if($limit>100){$limit=100;}
header("Content-type: image/gif");
$im = imageCreateFromGIF("img/rayt.gif");
//-----------------------------------------------------------//
$color = imagecolorallocate($im, 234, 237, 237);
$color2 = imagecolorallocate($im, 227, 222, 222);
$color3 = imagecolorallocate($im, 204, 200, 200);
$color4 = imagecolorallocate($im, 185, 181, 181);
$color5 = imagecolorallocate($im, 197, 195, 195);
imagefilledrectangle ($im, 2, 1, 99, 2, $color);
imagefilledrectangle ($im, 1, 3, 100, 4, $color2);
imagefilledrectangle ($im, 1, 5, 100, 6, $color3);
imagefilledrectangle ($im, 1, 7, 100, 8, $color4);
imagefilledrectangle ($im, 2, 9, 99, 10, $color5);
//-----------------------------------------------------------//
$color = imagecolorallocate($im, 255, 204, 204);
$color2 = imagecolorallocate($im, 255, 153, 153);
$color3 = imagecolorallocate($im, 255, 102, 102);
$color4 = imagecolorallocate($im, 255, 51, 51);
$color5 = imagecolorallocate($im, 255, 102, 102);
$color6 = imagecolorallocate($im, 0, 0, 0);
if($rat>0){
imagefilledrectangle ($im, 2, 1, $rats, 2, $color);
imagefilledrectangle ($im, 1, 3, $rat, 4, $color2);
imagefilledrectangle ($im, 1, 5, $rat, 6, $color3);
imagefilledrectangle ($im, 1, 7, $rat, 8, $color4);
imagefilledrectangle ($im, 2, 9, $rats, 10, $color5);
}
ImageString($im, 1, 78, 2, "$rat%", $color6);
ImageGIF($im);
вообще нечего не пойму тут
456675883 ,
разбирайся . я уже тебе готовое написал
разбирайся . я уже тебе готовое написал