Smiles-War
51
14
cache/trahir.php
<?php
$resultfc = mysql_query("SELECT nom,x,y,jeton,pv,pvmax,pa,pd,XP,type FROM smi_perso where 1 and nom like ".$su." ");
$row = mysql_fetch_array($resultfc);
$nomm = $row[0];
$x = $row["x"];
$y = $row["y"]; $jeton = $row["jeton"];$pv = $row["pv"];$pvmax = $row["pvmax"];$pa = $row["pa"];$xp = $row["XP"];
$pd = $row["pd"];$type = $row["type"];
$msg.="Vous changez de coté contre un jeton";
if ($jeton<=0){$msg.="Plus de jetons revenez dans une heure ";
}else{
$type=3-$type;
mysql_query("update smi_perso set jeton=jeton-1,type=$type where 1 and nom like ".$su." ");
}
?>
2005-01-12 16:02:00