Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
var dat=#db.f({_id:"account_"+context.caller}).first();
if(dat.balance > withdraw) {
var z=#fs.accts.xfer_gc_to_caler({amount:withdraw,memo:"Withdrawal"})
if(z.ok) {
dat.balance-=withdraw;
#db.u1({_id:dat._id},dat);
}
return z;
}
return {ok:false,msg:"Insufficient balance"}
}
function bad(withdraw) {
var dat=#db.f({_id:"account_"+context.caller}).first();
if(dat.balance > withdraw) {
var z=#fs.accts.xfer_gc_to_caler({amount:withdraw,memo:"Withdrawal"})
if(z.ok) {
#db.u1({_id:dat._id},{$inc:{balance:-withdraw}});
}