Depot Posted March 27, 2013 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
Xperia Posted March 27, 2013 Posted March 27, 2013 function showMoney( thePlayer ) local money = getPlayerMoney( thePlayer ) outputChatBox( "Tienes " .. tostring(money) .. " $ para gastar", thePlayer ) end addCommandHandler("dinero", showMoney, false, false)
BorderLine Posted March 31, 2013 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)
FraN-724 Posted March 31, 2013 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)
FraN-724 Posted March 31, 2013 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
Recommended Posts