pawn-lang / pawn-stdlib

The Pawn Standard Library Package, not including any files related to SA:MP - designed for the sampctl package management system.
http://sampctl.com
23 stars 10 forks source link

More upstream compatibility: #1

Closed Y-Less closed 6 years ago

Y-Less commented 6 years ago

Added strformat, strcopy, and strequal to string.inc. Added console.inc with print and printf. Added default.inc including core.inc and console.inc. Made console.inc try include a_samp.inc so that print and printf aren't defined twice if it exists.

These changes are a small attempt to improve code compatibility with: https://github.com/compuphase/pawn/tree/master/include (the original PAWN repository with more functions). One thing discussed was the fact that print and printf are quite core functions, but are defined in a_samp.inc with game API functions. The upstream code puts them in console.inc, so this does too.

TODO:

Maybe try backport even more of the newer functions like the cfg and console get ones.

Southclaws commented 6 years ago

Thanks! Are there any active Pawn projects that are not SA:MP related (not amx_assembly either)? I would be interested in trying to use sampctl (just the package manager part) with a pure Pawn project - just out of interest!

Y-Less commented 6 years ago

TBH I've not actually looked. I'm thinking ahead somewhat (can't say why). Check: https://www.compuphase.com/pawn/pawnprojects.htm (I suspect that list has not been updated in about as long as many of those projects).