06.12.2012, 12:23
From pawn-lang.pdf
However I dont really know why you would need public variables for samp.
Quote:
Global “simple” variables (no arrays) may be declared “public” in two ways: ⋄ declare the variable using the keyword public instead of new; ⋄ start the variable name with the “@” symbol. Public variables behave like global variables, with the addition that the host program can also read and write public variables. A (normal) global variable can only be accessed by the functions in your script —the host program is unaware of them. As such, a host program may require that you declare a variable with a specific name as “public” for special purposes —such as the most recent error number, or the general program state. |