Lokas Posted January 4, 2012 Share Posted January 4, 2012 function playerMoney( thePlayer, root ) givePlayerMoney ( thePlayer, 12000 ) addCommandHandler("givemoney", my, playerMoney) Help plz! Link to comment
Kenix Posted January 4, 2012 Share Posted January 4, 2012 function playerMoney( thePlayer ) givePlayerMoney ( thePlayer, 12000 ) end addCommandHandler("givemoney", playerMoney) Link to comment
Lokas Posted January 4, 2012 Author Share Posted January 4, 2012 <meta> <script src="money.lua" type="client"/> </meta> ? Link to comment
FatalTerror Posted January 4, 2012 Share Posted January 4, 2012 (edited) You don't add ? And it's client side... givePlayerMoney use only 1 argument in client-side. bool givePlayerMoney ( int amount ) Try that: function playerMoney() givePlayerMoney ( 12000 ) end addCommandHandler("givemoney", playerMoney) Edited January 4, 2012 by Guest Link to comment
DakiLLa Posted January 4, 2012 Share Posted January 4, 2012 is an optional tag. Replace "client" with the "server". Link to comment
Kenix Posted January 4, 2012 Share Posted January 4, 2012 function playerMoney( thePlayer ) givePlayerMoney ( thePlayer, 12000 ) end addCommandHandler("givemoney", playerMoney) <meta> <script src="money.lua" type="server"/> </meta> Link to comment
Lokas Posted January 4, 2012 Author Share Posted January 4, 2012 Thanks so much, Kenix Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now