05.01.2015, 17:19
After reading that at least you will know how to use use sscanf.
But don't get me wrong, I could give you the complete working code, but then you won't learn anything. It's better to let you figure out the problem yourself and you will learn a lot more!
Here are a few tips:
- You don't have to use 'else'.
- You forgot to add a parameter in the sscanf function (read the tutorial for that).
- The second error-message should say somethink like "[Error]: Use: /setlevel [playerid] [level]".
- Don't forget to actually change the playerlevel.
But don't get me wrong, I could give you the complete working code, but then you won't learn anything. It's better to let you figure out the problem yourself and you will learn a lot more!
Here are a few tips:
- You don't have to use 'else'.
- You forgot to add a parameter in the sscanf function (read the tutorial for that).
- The second error-message should say somethink like "[Error]: Use: /setlevel [playerid] [level]".
- Don't forget to actually change the playerlevel.