Depot Posted March 27, 2013 Share Posted March 27, 2013 function showMoney( thePlayer ) outputChatBox( "Tienes " .. exports.global:formatMoney( exports.global:getMoney( thePlayer ) ), thePlayer ) end addCommandHandler("dinero", showMoney, false, false) Lo que quiero es poner texto después del dinero, un ejemplo: "Tienes X dolares para gastar" En que parte del código coloco "dolares para gastar". Es una tontería pero me quede Si todavía no entendéis a que me refiero avisad y hago un croquis en youtube Link to comment
Xperia Posted March 27, 2013 Share Posted March 27, 2013 function showMoney( thePlayer ) local money = getPlayerMoney( thePlayer ) outputChatBox( "Tienes " .. tostring(money) .. " $ para gastar", thePlayer ) end addCommandHandler("dinero", showMoney, false, false) Link to comment
BorderLine Posted March 31, 2013 Share Posted March 31, 2013 function showMoney( thePlayer ) outputChatBox( "Tienes $" .. exports.global:formatMoney( exports.global:getMoney( thePlayer ) ).." para gastar, thePlayer ) end addCommandHandler("dinero", showMoney, false, false) Link to comment
FraN-724 Posted March 31, 2013 Share Posted March 31, 2013 Corrijo tu error Yakuza function showMoney( thePlayer ) outputChatBox("Tienes $" .. exports.global:formatMoney( exports.global:getMoney( thePlayer ) ).. 'para gastar', thePlayer) end addCommandHandler("dinero", showMoney, false, false) Link to comment
FraN-724 Posted March 31, 2013 Share Posted March 31, 2013 Sí, pero piensa, si él no sabe mucho sobre el tema la hubiese puesto así y le hubiera dado un error grande Link to comment
Recommended Posts