Coder Social home page Coder Social logo

pawn-lang / pawn-stdlib Goto Github PK

View Code? Open in Web Editor NEW
23.0 6.0 10.0 236 KB

The Pawn Standard Library Package, not including any files related to SA:MP - designed for the sampctl package management system.

Home Page: http://sampctl.com

Pawn 69.70% XSLT 30.30%
pawn-package sa-mp pawn standard-library sa-mp-development

pawn-stdlib's Introduction

pawn-stdlib

The Pawn Standard Library Package, not including any files related to SA:MP - designed for the sampctl package management system.

Why?

The package management system built into the sampctl tool is based on GitHub (Similar to that of the Go language) so it simplifies the process to have the standard library stored here on GitHub too. This means there doesn't need to be any special-case code written for the standard library, it can just be a package like all others.

pawn-stdlib's People

Contributors

daniel-cortez avatar dentis-t avatar is4code avatar shiska avatar southclaws avatar y-less avatar yugecin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pawn-stdlib's Issues

Consistent function naming

While these includes originally used lowercase naming, most of the rest of the SA:MP community - including the official includes and major includes and plugins use UpperCase. The naming here is somewhat legacy and should be brought up to date:

#pragma deprecated Use `FuncIDX`.
native funcidx(const name[]);
native FuncIDX(const name[]) = funcidx;

Releases

If someone isn't using sampctl, it might still be useful to have both this repo and sampctl/samp-stdlib as download points for improved versions of the standard libraries that we can point people to when they ask questions (or even if they don't). However, since the two are separated for convenience in sampctl it could be good to have identical releases in both repos with all the standard includes from both in them. Just as an easy "download this for betterness" link.

`printf` double declaration.

console.inc has:

// Don't define "printf" twice.
#tryinclude <a_samp>
#if defined _samp_included
	#endinput
#endif

Which only works when you want a_samp AND are including in the correct order. If you write an NPC script you want a_npc instead. If you want to redefine certain constants you may include console.inc before you want to include a_samp. a_samp already includes the other includes, so I think console.inc should be added to that list, and this check removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.