| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 6,742
» Latest member: KaranTech
» Forum threads: 2,605
» Forum posts: 12,688
Full Statistics
|
| Online Users |
There are currently 107 online users. » 0 Member(s) | 104 Guest(s) Bing, Yandex, Google
|
|
|
| Coding Pawn: From Useless to Y_Less. |
|
Posted by: Y_Less - 2019-04-12, 12:45 PM - Forum: Tutorials
- Replies (18)
|
 |
I was comissioned to write a detailed curriculum for a complete beginner to learn pawn with. This is a combination of links to existing tutorials and wholly new information. It is not a tutorial in itself, but a collection of information to read and learn. Depending what you want to learn, you might not even need everything, thus various sections try to list their dependencies so you don't start reading about something without first having read the parts it relies on.
Unfortunately the forums don't support markdown (and forumfmt doesn't QUITE support the BB code used here), so it is hosted on github:
https://github.com/Y-Less/pawn-curriculum
|
|
|
|
Humanize - A human-friendly Pawn library |
|
Posted by: Codeah - 2019-04-11, 04:08 PM - Forum: Libraries
- Replies (10)
|
 |
Humanize
Description
Humanize is a library that makes stuff computers can read easily, more readable for humans.
Features
Thousands Seperators
Code: 0 -> 0
100 -> 100
1000 -> 1,000
1000000 -> 1,000,000
-100000 -> -100,000
Code: HumanizeThousand(integer, dest[], maxLength = sizeof dest, delimiter[] = ",")
Colors
Code: 0xA86420FF -> "Chocolate Brown"
0x42F44EFF -> "Lime Green"
0x137A8EFF -> "Teal"
Code: HumanizeColor(color, dest[], maxLength = sizeof dest)
Numbers to words
Code: 1000 -> "one thousand"
1234 -> "one thousand two hundred thirty-four"
-1234 -> "negative one thousand two hundred thirty-four"
Code: HumanizeNumber(number, dest[], maxLength = sizeof dest)
Ordinals
Code: 0 -> 0th
1 -> 1st
2 -> 2nd
3 -> 3rd
4 -> 4th
etc...
Code: HumanizeOrdinal(number, dest[], maxLength = sizeof dest)
Install / Download
You can find all releases here.
Alternatively, you can simply install Humanize to your project using SampCTL.
Code: sampctl package install thecodeah/pawn-humanize
Include in your code and begin using the library:
Issues / Suggestions
Please leave suggestions and report issues on Github.
|
|
|
|
|