0
Well I don’t know if anyone has ever played a game with rank system, it’s pretty simple to link split expensive costs a price and it varies depending on the link, for example each tyer on iron is worth 10, but to go to the bronze you need to go through the rest or if you are in the iron 2 you will go through the iron 1 and then to the bronze 4 and then bronze 3 so successively as your choice, but the great thing is that it varies the price according to the link, wanted to be able to do this in php
.
I thought about doing it with what I learned in C, but I couldn’t convey in php
elo[0][0]=10;//ferro4
elo[0][1]=10;//ferro3
elo[0][2]=10;//ferro2
elo[0][3]=10;//ferro1
elo[1][1]=15;//bronze4
elo[1][1]=15;//bronze3
elo[1][2]=15;//bronze2
elo[1][3]=15;//bronze1
<html>
<head>
<title></title>
</head>
<body>
<h5>Elo atual</h5>
<form action="array.php" method="POST">
<select name="eloi" required>
<option selected disabled value="">Elo</option>
<option value="1">Ferro</option>
<option value="2">Bronze</option>
<option value="3">Prata</option>
<option value="4">Ouro</option>
<option value="5">Platina</option>
</select>
<select name="tyeri" required>
<option selected disabled value="">Tier</option>ss
<option value="1">IV</option>
<option value="2">III</option>
<option value="3">II</option>
<option value="4">I</option>
</select>
<h5>Elo desejado</h5>
<select name="elof" required>
<option selected disabled value="">Elo</option>
<option value="1">Ferro</option>
<option value="2">Bronze</option>
<option value="3">Prata</option>
<option value="4">Ouro</option>
<option value="5">Platina</option>
</select>
<select name="tyerf" required>
<option selected disabled value="">Tier</option>ss
<option value="1">IV</option>
<option value="2">III</option>
<option value="3">II</option>
<option value="4">I</option>
</select>
<input type="submit" name="bot" value="enviar">
</form>
</body>
</html>
This is your php code?
elo[0][0]=10;//ferro4
elo[0][1]=10;//ferro3
elo[0][2]=10;//ferro2
elo[0][3]=10;//ferro1
elo[1][1]=15;//bronze4
elo[1][1]=15;//bronze3
elo[1][2]=15;//bronze2
elo[1][3]=15;//bronze1
– Maury Developer
is an example if it were in C language, php would have to use foreach
– Vinicius
From what I understand to increase the link you have to buy or I’m wrong?
– Maury Developer
s, serio como uma Neatiada vc picks up bronze medal and wants the gold but to get to the gold you have to buy the silver so you pay for the gold and the silver that is in the way
– Vinicius
Create variable Coins. Every minute increases.
– Maury Developer