PhantomDamn Posted February 1, 2013 Share Posted February 1, 2013 Como reinicio todas las cuentas? mi sv tenia el fuckin bug ( deposit- 99999999 ) y ya lo quite pero todos quedaron con el money robado Link to comment
Castillo Posted February 1, 2013 Share Posted February 1, 2013 Seguramente el de 50p. Link to comment
Alexs Posted February 1, 2013 Share Posted February 1, 2013 function resetAllBalance () for k, i in ipairs(getAccounts()) do setBankAccountBalance( getAccountName(i), 0, SQLdata ) --Si lo pondrás en otro recurso, recuerda el 'call'. end end Con esa función puedes volver a poner las cuentas en 0, el problema es que no se que significa SQLdata. Link to comment
PhantomDamn Posted February 1, 2013 Author Share Posted February 1, 2013 si uso el de 50p ... pero tiene aun el comando para sacar dinero ... estoy solucionandolo Link to comment
PhantomDamn Posted February 17, 2013 Author Share Posted February 17, 2013 function getBankAccountBalance( accountName, SQLdata ) if isElement( accountName ) and getElementType( accountName ) == "player" then local account = getPlayerAccount( accountName ); return tonumber( getAccountData( account, "bank.balance" ) ); --accountName = getPlayerName( accountName ) elseif type( accountName ) ~= "string" then return false end no encuentro la funcion reset Link to comment
Arsilex Posted February 17, 2013 Share Posted February 17, 2013 no es encontrar es usarla osea ponerla en tu bank.. Link to comment
PhantomDamn Posted February 17, 2013 Author Share Posted February 17, 2013 Uppss! Sorry y Gracias Link to comment
Alexs Posted February 17, 2013 Share Posted February 17, 2013 Finalmente, En que resulto todo? Link to comment
Recommended Posts