10.11.2014, 23:19
There is a real nuisance of a limitation in the PAWN Compiler version SA-MP uses whereby functions and variables names can hold a maximum length of 31 characters.
This is a real problem for anybody who attempts to implement a naming convention in their script. Often as a result of this warning, function names and variables have to be shorted or abbreviated - this is bad.
A lot of issues in the software development world arise out of misleading or undocumented programming practices. The fact that PAWN has a lot of limitations in the sense that it is only a procedural programming language can generally be dealt with - but the fact that it's not even possible to give a function a proper description so that it may be easier to locate the source of that function and/or keep it consistent with file names (like you could with a class name if it was an OOP Language, for example) is just simply ridiculous.
I'm not sure how the PAWN compiler was written but its a real surprise that the authors of this compiler would impose such a limitation. One can only assume that there's a good reason for it and it was not desired.
Anyway, the purpose of this topic is to discuss any way that this can be bypassed. I'm only fluent with the high level syntax of PAWN and haven't had a play with some of the low level stuff or conducted extensive research into the compiler in comparison to some of the people on these forums.
Surely there's got to be a way to get around this limit! Does anybody else suffer with this?
This is a real problem for anybody who attempts to implement a naming convention in their script. Often as a result of this warning, function names and variables have to be shorted or abbreviated - this is bad.
A lot of issues in the software development world arise out of misleading or undocumented programming practices. The fact that PAWN has a lot of limitations in the sense that it is only a procedural programming language can generally be dealt with - but the fact that it's not even possible to give a function a proper description so that it may be easier to locate the source of that function and/or keep it consistent with file names (like you could with a class name if it was an OOP Language, for example) is just simply ridiculous.
I'm not sure how the PAWN compiler was written but its a real surprise that the authors of this compiler would impose such a limitation. One can only assume that there's a good reason for it and it was not desired.
Anyway, the purpose of this topic is to discuss any way that this can be bypassed. I'm only fluent with the high level syntax of PAWN and haven't had a play with some of the low level stuff or conducted extensive research into the compiler in comparison to some of the people on these forums.
Surely there's got to be a way to get around this limit! Does anybody else suffer with this?