initializing enum array - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: initializing enum array (
/showthread.php?tid=648623)
initializing enum array -
Baltazar - 25.01.2018
Код:
enum e_my_array { e_my_array_id, Float:e_my_array_length }
stock my_array[5][e_my_array] = {{-1, 0.0}, ...};
Quote:
error 029: invalid expression, assumed zero
|
Compiles well when initialisation part removed. What's the problem?
Re: initializing enum array -
Dayvison_ - 25.01.2018
In pawn 3.10 this is already fixed
https://github.com/Southclaws/pawn
Re: initializing enum array -
Baltazar - 25.01.2018
Quote:
Originally Posted by Dayvison_
|
This compiler tells me I haven't included <a_samp> before <sscanf2> which I did
Re: initializing enum array -
Dayvison_ - 25.01.2018
Use the
Compatibility-mode or update the sscanf to rl=https://github.com/maddinat0r/sscanf][this[/url]
Re: initializing enum array -
Baltazar - 25.01.2018
Quote:
Originally Posted by Dayvison_
Use the Compatibility-mode or update the sscanf to rl=https://github.com/maddinat0r/sscanf][this[/url]
|
Updated. Nice. Now YSI gets bullied around by this superb compiler :/
Код:
..\pawno\include\YSI\internal\..\internal\y_natives.inc(65) : fatal error 100: cannot read from file: "y_globaltags"
Re: initializing enum array -
Dayvison_ - 25.01.2018
You will need use
Compatibility-mode when include a YSI file, because she does not support cross-plataform.
I use this:
PHP код:
#pragma compat 1
#include <YSI_Data\y_iterate>
#pragma compat 0
Re: initializing enum array -
Baltazar - 25.01.2018
Quote:
Originally Posted by Dayvison_
You will need use Compatibility-mode when include a YSI file, because she does not support cross-plataform.
I use this:
PHP код:
#pragma compat 1
#include <YSI_Data\y_iterate>
#pragma compat 0
|
You are my saviour. It all works nice and clean now. Thank You!