07.12.2018, 15:48
Hello there,
I'd like to start with some suggestions: And the first would be to use SQL, whether SQLite [I recommend if you don't wish to use UCP and doesn't require any other plugins] or MySQL, because they are languages that are used not just in SA-MP but also in other places (such as web, apps etc.)
More over, your code is not in English and I'll try my best to help you with what I could grasp. Make a chart (flow-chart) how you want something to function and then start writing a code. Furthermore, instead of checking what their class is and setting data manually - you can use arrays and loop.
I'd like to start with some suggestions: And the first would be to use SQL, whether SQLite [I recommend if you don't wish to use UCP and doesn't require any other plugins] or MySQL, because they are languages that are used not just in SA-MP but also in other places (such as web, apps etc.)
More over, your code is not in English and I'll try my best to help you with what I could grasp. Make a chart (flow-chart) how you want something to function and then start writing a code. Furthermore, instead of checking what their class is and setting data manually - you can use arrays and loop.