FlyingSpoon Posted June 20, 2015 Posted June 20, 2015 How would I go about making a top wins for certain maps on race. For example - GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
xXMADEXx Posted June 21, 2015 Posted June 21, 2015 How would I go about making a top wins for certain maps on race. For example - You just need to use setElementData/setAccountData and increase the key by one anytime they win. Use getAccounts and getAccountData to retrieve the accounts and wins. The Ultimate Lua Tutorial! | MTA PHP SDK
FlyingSpoon Posted June 21, 2015 Author Posted June 21, 2015 Okay, thanks! I'll try it out. If I get any problems I'll come back ! But how will I do it for each map though? GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
Anubhav Posted June 21, 2015 Posted June 21, 2015 Answer: Use SQLite. Create a table named: topWins or name it whatever you want. Then make columns named: mapName TEXT Player TEXT Wins INT Then you know what to do! Insert/updating whenever needed.. And you also need to set the account data of the wins of the player! See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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