PAWN Errors & Warnings list. ** [ALL] -
GangsTa_ - 30.10.2011
Full Errors & Warnings list:
PHP Code:
error 001: expected token: "%s", but found "%s";
error 002: only a single statement (or expression) can follow each "case";
error 003: declaration of a local variable must appear in a compound block;
error 004: function "%s" is not implemented;
error 005: function may not have arguments;
error 006: must be assigned to an array;
error 007: operator cannot be redefined;
error 008: must be a constant expression; assumed zero;
error 009: invalid array size (negative or zero);
error 010: invalid function or declaration;
error 011: invalid outside functions;
error 012: invalid function call, not a valid address;
error 013: no entry point (no public functions);
error 014: invalid statement; not in switch;
error 015: "default" case must be the last case in switch statement;
error 016: multiple defaults in "switch";
error 017: undefined symbol "%s";
error 018: initialization data exceeds declared size;
error 019: not a label: %s";
error 020: invalid symbol name "%s";
error 021: symbol already defined: %s";
error 022: must be lvalue (non-constant);
error 023: array assignment must be simple assignment;
error 024: "break" or "continue" is out of context;
error 025: function heading differs from prototype;
error 026: no matching "#if...";
error 027: invalid character constant -;
error 028: invalid subscript (not an array or too many subscripts): %s";
error 029: invalid expression, assumed zero;
error 030: compound statement not closed at the end of file;
error 031: unknown directive;
error 032: array index out of bounds (variable "%s");
error 033: array must be indexed (variable "%s");
error 034: argument does not have a default value;
error 035: argument type mismatch (argument %d);
error 036: empty statement;
error 037: invalid string (possibly non-terminated string);
error 038: extra characters on line;
error 039: constant symbol has no size;
error 040: duplicate "case" label (value %d);
error 042: invalid combination of class specifiers;
error 043: character constant exceeds range for packed string;
error 044: positional parameters must precede all named parameters;
error 045: too many function arguments;
error 046: unknown array size (variable "%s");
error 047: array sizes do not match, or destination array is too small;
error 048: array dimensions do not match;
error 049: invalid line continuation;
error 050: invalid range;
error 051: invalid subscript, use "[ ]" operators on major dimensions;
error 052: multi-dimensional arrays must be fully initialized;
error 053: exceeding maximum number of dimensions;
error 054: unmatched closing brace;
error 055: start of function body without function header;
error 056: arrays, local variables and function arguments cannot be public (variable "%s");
error 057: unfinished expression before compiler directive;
error 058: duplicate argument; same argument is passed twice;
error 059: function argument may not have a default value (variable "%s");
error 060: multiple "#else" directives between "#if ... #endif";
error 061: "#elseif" directive follows an "#else" directive;
error 062: number of operands does not fit the operator;
error 063: function result tag of operator "%s" must be "%s";
error 064: cannot change predefined operators;
error 065: function argument may only have a single tag (argument %d);
error 066: function argument may not be a reference argument or an array (argument "%s");
error 067: variable cannot be both a reference and an array (variable "%s");
error 068: invalid rational number precision in #pragma;
error 069: rational number format already defined;
error 070: rational number support was not enabled;
error 071: user-defined operator must be declared before use (function "%s");
error 072: "sizeof" operator is invalid on "function" symbols;
error 073: function argument must be an array (argument "%s");
error 074: #define pattern must start with an alphabetic character;
error 075: input line too long (after substitutions);
error 076: syntax error in the expression, or invalid function call;
error 077: malformed UTF-8 encoding, or corrupted file: %s;
error 078: function uses both "return" and "return ";
error 079: inconsistent return types (array & non-array);
error 080: unknown symbol, or not a constant symbol (symbol "%s") -;
error 081: cannot take a tag as a default value for an indexed array parameter (symbol "%s");
error 082: user-defined operators and native functions may not have states;
error 083: a function may only belong to a single automaton (symbol "%s");
error 084: state conflict: one of the states is already assigned to another implementation (symbol "%s");
error 085: no states are defined for function "%s";
error 086: unknown automaton "%s";
error 087: unknown state "%s" for automaton "%s";
error 088: number of arguments does not match definition;
fatal error 100: cannot read from file: "%s";
fatal error 107: too many error messages on one line;
warning 200: symbol "%s" is truncated to 31 characters;
warning 201: redefinition of constant/macro (symbol "%s");
warning 202: number of arguments does not match definition;
warning 204: symbol is assigned a value that is never used: "%s";
warning 209: function "%s" should return a value;
warning 211: possibly unintended assignment;
warning 213: tag mismatch;
warning 215: expression has no effect;
warning 216: nested comment;
warning 217: loose indentation;
warning 219: local variable "%s" shadows a variable at a preceding level;
warning 224: indeterminate array size in "sizeof" expression (symbol "%s");
warning 225: unreachable code;
warning 235: public function lacks forward declaration (symbol "%s");
Errors and warnings list by
Jochemd (with fix) here -
http://forum.sa-mp.com/showthread.ph...rrors+warnings
Re: PAWN Errors & Warnings list. ** [ALL] -
skullmuncher1337 - 30.10.2011
Nice work
Re: PAWN Errors & Warnings list. ** [ALL] -
Kingunit - 30.10.2011
Honestly, I don't see this as a tutorial.
Re: PAWN Errors & Warnings list. ** [ALL] -
Stigg - 30.10.2011
Not really a tutorial, but thanks for sharing the error list.
Re: PAWN Errors & Warnings list. ** [ALL] - Deskoft - 30.10.2011
This is easily found on pawn_lang.pdf, but well, thanks. Even thought I find it faster to open pawn_lang.pdf and see all the warnings and errors.
Re: PAWN Errors & Warnings list. ** [ALL] -
GangsTa_ - 30.10.2011
Well I didn't know where to put them. (Server support?)
Re: PAWN Errors & Warnings list. ** [ALL] - Deskoft - 30.10.2011
I am not saying it's in the wrong section, I am saying that this is found on a document called pawn_lang.pdf
Re: PAWN Errors & Warnings list. ** [ALL] -
GangsTa_ - 30.10.2011
I answered to Stigg and Kingunit.
Re: PAWN Errors & Warnings list. ** [ALL] -
skullmuncher1337 - 30.10.2011
This should be stickied. It's very useful.
Re: PAWN Errors & Warnings list. ** [ALL] -
=WoR=Varth - 30.10.2011
Quote:
Originally Posted by skullmuncher1337
This should be stickied. It's very useful.
|
Are you serious?
I don't even see any tutorial or something else, just a list.