Closed assyrianic closed 11 months ago
just reproduced it with this smaller example:
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo = {
name = "",
author = "",
description = "",
version = "0.0.0",
url = ""
};
enum struct I {
int t;
}
stock void Sort(I[] is, int len) {
for( int i; i < len; i++ ) {
for( int n; n < len; n++ ) {
if( i==n ) {
continue;
} else if( is[n].t < is[i].t ) {
I tmp; tmp = is[i];
is[i] = is[n];
is[n] = tmp;
}
}
}
}
public void OnPluginStart() {
}
SourcePawn Compiler 1.12.0.7092
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC
test_compile.sp(23) : error 046: unknown array size (variable "is")
23 | is[i] = is[n];
-------------------^
test_compile.sp(24) : error 046: unknown array size (variable "is")
24 | is[n] = tmp;
-------------------^
2 Errors.