Sasu Posted April 20, 2013 Share Posted April 20, 2013 Why this script set text the local player money? local player = getPlayerFromName(playerName) local playerMoney = getPlayerMoney(player) guiSetText(dineroLabel, "Dinero: $"..playerMoney) Link to comment
فاّرس Posted April 20, 2013 Share Posted April 20, 2013 Humm,are you want the money showing in the label ? Link to comment
MIKI785 Posted April 20, 2013 Share Posted April 20, 2013 You mean that you want to retrieve the money of another player and show it in GUI? That can't be done using getPlayerMoney. This function can't get money of remote player if client sided. So make server side script which will save player's money into element data and this can be retrieved on client side. Link to comment
Sasu Posted April 20, 2013 Author Share Posted April 20, 2013 You mean that you want to retrieve the money of another player and show it in GUI? That can't be done using getPlayerMoney. This function can't get money of remote player if client sided. So make server side script which will save player's money into element data and this can be retrieved on client side. Ok. I will try. Thank you very much. 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