initializing enum array
#1

Код:
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?
Reply
#2

In pawn 3.10 this is already fixed https://github.com/Southclaws/pawn
Reply
#3

Quote:
Originally Posted by Dayvison_
Посмотреть сообщение
In pawn 3.10 this is already fixed https://github.com/Southclaws/pawn
This compiler tells me I haven't included <a_samp> before <sscanf2> which I did
Reply
#4

Use the Compatibility-mode or update the sscanf to rl=https://github.com/maddinat0r/sscanf][this[/url]
Reply
#5

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"
Reply
#6

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 
Reply
#7

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!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)