Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 6,744
» Latest member: jetix.php
» Forum threads: 2,283
» Forum posts: 12,125
Full Statistics
|
Online Users |
There are currently 323 online users. » 0 Member(s) | 321 Guest(s) Bing, Google
|
Latest Threads |
bug OnPlayerClickMap
Forum: Pawn Scripting
Last Post: mist91631
10 hours ago
» Replies: 3
» Views: 79
|
White Screen
Forum: Support
Last Post: AbrahamSenger
Yesterday, 03:04 AM
» Replies: 2
» Views: 288
|
PROCURANDO HOST SAMP?
Forum: Advertisements
Last Post: VitorAragao404
2025-01-20, 04:30 PM
» Replies: 0
» Views: 29
|
Warning
Forum: Russian/???????
Last Post: Silicium
2025-01-20, 03:28 PM
» Replies: 1
» Views: 52
|
What city of the country ...
Forum: Chat
Last Post: Collw
2025-01-20, 01:36 AM
» Replies: 90
» Views: 136,670
|
[GER] German-Crimetime | ...
Forum: Advertisements
Last Post: mad
2025-01-18, 11:52 PM
» Replies: 0
» Views: 28
|
Vehicle Tune Dialog using...
Forum: Filterscripts
Last Post: Vornex
2025-01-16, 04:15 PM
» Replies: 0
» Views: 62
|
My server version does no...
Forum: Support
Last Post: black_tiger
2025-01-15, 01:30 PM
» Replies: 0
» Views: 62
|
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
2025-01-15, 12:13 PM
» Replies: 1
» Views: 465
|
Hello
Forum: Questions and Suggestions
Last Post: Eavereas2001
2025-01-15, 08:53 AM
» Replies: 0
» Views: 52
|
|
|
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.
|
|
|
|