Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 707 online users. » 1 Member(s) | 703 Guest(s) Google, Bing, Yandex
|
|
|
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.
|
|
|
PAWN Fiddle - Share & run PAWN code online |
Posted by: peek - 2019-03-31, 09:35 PM - Forum: Releases
- Replies (14)
|
|
PAWN Fiddle
Share & run PAWN code
PAWN Fiddle is a playground platform for the PAWN scripting language. Create, execute, fork and share code snippets across the SA-MP community.
What is this for?
If you need help with your code, you can use this fiddle service?instead of posting big code blocks in the forum or discord?which?isn't really testable. With PAWN Fiddle you can send a complete example of your problem, which makes it easier for the other person to fix your code / help you with?the integrated compiler and plugin / include?support. This could also be used to demonstrate the use of your plugin / include (provided it's a sampctl compatible PAWN-package), or snippet hosting.
How do I use this?
- Navigate to https://fiddle.sa-mp.dev
- Select the dependencies your fiddle needs.
- Write / Paste your code.
- Check if your code compiles, by clicking the Run button.
- Share your fiddle with the world.
Liveserver (Beta)
https://fiddle.sa-mp.dev
GitHub (Source Code)
https://github.com/samp-dev/fiddle
|
|
|
hello :) |
Posted by: ari - 2019-03-06, 09:49 AM - Forum: Chat
- Replies (22)
|
|
i am ari i am southclaws best friend? :D
|
|
|
hi |
Posted by: cuddlypanda - 2019-02-23, 04:13 PM - Forum: Chat
- Replies (6)
|
|
Hello, I'm cuddlypanda and I give free cuddles. I also like bamboo and burgers. I draw, write and compose music?
thank you
|
|
|
|