Parašė RuP3r· 2008 Geg. 5 08:05:34
#9
function showmoney($userdatas, $type){
global $lang_functions, $db_prefix, $userdata;
$pinigai = dbarray(dbquery("SELECT * FROM ".$db_prefix."money_users WHERE userid = '".$userdatas."'"merkia akį);
if($type == 0){
return $pinigai['pinigai'];
}else if($type == 1){
return $pinigai['pinigai']/100;
}else if($type == 2){
opentable($lang_functions['1']);
$pinigai[pinigailt] = $pinigai[pinigai]/100;
$goldsettings = dbarray(dbquery("SELECT * FROM ".$db_prefix."money_settings"merkia akį);
echo "<center>".$lang_functions[2]." ".$userdata[user_name].$lang_functions[4]." ".$lang_functions[3]." ".$pinigai[pinigailt]." ".$goldsettings[valiuta]."</center>";
closetable();
}
}
?>
Bandyk pats susitvarkyt čia yra tik pinigai.