Skip to content

Commit a5336fe

Browse files
author
Y_Less
committed
Add a note on the very weird error message.
1 parent e8740eb commit a5336fe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ To fix this, just include `<sscanf2>` before you use `sscanf`.
16481648
## `error 004: function "sscanf" is not implemented`
16491649
## `error 004: function "sscanf" is not implemented - include <sscanf2> first.`
16501650

1651-
These are the same error, the only difference being which compiler you use. Obviously the newer compiler gives the more useful (second) error which tells you how to solve this problem. Similar to [the previous error](#fatal-error-111-user-error-sscanf-already-defined-or-used-before-inclusion) this happens when `sscanf` is used before being included, but in a slightly different way:
1651+
These are the same error, the only difference being compilers and settings. Obviously the more useful (second) error which tells you how to solve this problem. Similar to [the previous error](#fatal-error-111-user-error-sscanf-already-defined-or-used-before-inclusion) this happens when `sscanf` is used before being included, but in a slightly different way:
16521652

16531653
```pawn
16541654
#include <a_samp>
@@ -1671,6 +1671,14 @@ This code tries to be slightly clever, but fails. The correct way to check for
16711671
#endif
16721672
```
16731673

1674+
There is a third version of this error which looks like:
1675+
1676+
```
1677+
error 004: function "sscanf" is not implemented <library>sscanf</library> <remarks> The main entry point. See the readme for vast amounts of information on how to call this function and all the details on what it does. This is a macro that calls <c>SSCANF__</c> and passes the current file and line number as well for improved error messages. </remarks>
1678+
```
1679+
1680+
For more information on why, see [this compiler issue](https://github.com/pawn-lang/compiler/issues/705).
1681+
16741682
## Future Plans
16751683

16761684
### Reserved Specifiers

0 commit comments

Comments
 (0)