View Single Post
Kolapsicle
Senior Member
Join Date: Oct 2014
Old 02-05-2017 , 14:02   Re: how i can this -> new x[1][2] = {-1, ...};
Reply With Quote #9

I still receive the compile error on the latest build 1.9.0:6044

PHP Code:
#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>

int myArray[MAXPLAYERS 1][2] = { { -1, -}, ... }; // error 029: invalid expression, assumed zero

public void OnPluginStart()
{
    for (
int i 0sizeof(myArray); i++)
    {
        for (
int j 0sizeof(myArray[]); j++)
        {
            
PrintToConsole(0"myArray[%i][%i] = %i"ijmyArray[i][j]);
        }
    }


Last edited by Kolapsicle; 02-05-2017 at 14:03.
Kolapsicle is offline