Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 405 Bytes

File metadata and controls

20 lines (18 loc) · 405 Bytes

Private functions

  • Private functions in PawnScript are functions that cannot be accessed outside the PawnScript scope, in other words, these functions can't be called using the SDK.

Example:

void myPrivateFunc() private
{
	//foo
}

Doing this in your Pawn script will not work:

#include <open.mp>
#include <pawnscript_sdk>

main()
{
	CallPawnScriptFunction("myPrivateFunc","");
}