Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 318 online users. » 0 Member(s) | 316 Guest(s) Bing, Google
|
Latest Threads |
Map Markers new
Forum: Filterscripts
Last Post: KingOfSA-MP
2025-04-03, 03:40 PM
» Replies: 2
» Views: 437
|
=== Valemore Roleplay ===...
Forum: Advertisements
Last Post: stellab
2025-03-31, 06:20 AM
» Replies: 0
» Views: 66
|
Help please
Forum: Questions and Suggestions
Last Post: Antaked
2025-03-31, 04:45 AM
» Replies: 1
» Views: 197
|
Making a scratch RP serve...
Forum: Pawn Scripting
Last Post: stellab
2025-03-30, 03:42 PM
» Replies: 1
» Views: 100
|
Como hago que mi npc ataq...
Forum: Programaci?n
Last Post: Pac0
2025-03-30, 07:54 AM
» Replies: 2
» Views: 187
|
duda sobre %d
Forum: Programaci?n
Last Post: JuangaEb
2025-03-30, 01:15 AM
» Replies: 1
» Views: 188
|
what is this?
Forum: Chat
Last Post: Axzyl
2025-03-28, 09:28 PM
» Replies: 0
» Views: 92
|
help with hotdog vendor s...
Forum: Programming
Last Post: Axzyl
2025-03-24, 09:33 AM
» Replies: 3
» Views: 190
|
Runtime error when connec...
Forum: Support
Last Post: stellab
2025-03-24, 06:59 AM
» Replies: 1
» Views: 166
|
Unable to run qawno
Forum: Support
Last Post: stellab
2025-03-24, 06:57 AM
» Replies: 2
» Views: 146
|
|
|
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.
|
|
|
|