Constant syntax error??

  • plead-for-destruction
    29th Jun 2012 Member 0 Permalink
    Im getting a wierd Sytax error:

    1>src\elementdata.c(195): error C2059: syntax error : 'constant'

    This is line 195 of elementdata.c:

    {"IRAS", PIXPACK(0x003300), 0.1f, 0.01f * CFDS, 1.0f, 0.5f, 0.0f, 0.1f 0.00f, 0.01f * CFDS 2, 1, 0, 0, 1, 1, 1, 38, SC_NUCLEAR, R_TEMP+85.0f +273.15f, 20, "IRAS, Irradiated Solution, a highly radioactive liquid that releases extremely hot flame and radiation", ST_LIQUID,TYPE_LIQUID|PROP_HOT_GLOW|PROP_RADIOACTIVE|PROP_NEUTPASS},
  • Pilihp64
    29th Jun 2012 Developer 0 Permalink

    missing a ,

    between 0.1f and 0.00f

  • plead-for-destruction
    29th Jun 2012 Member 0 Permalink
    @cracker64 (View Post)
    Thanks =3

    EDIT: didnt work D:
  • jacob1
    29th Jun 2012 Developer 0 Permalink
    @plead-for-destruction (View Post)
    Are you still getting the same error? Also, try what I said in the other thread (adding ,NULL, NULL to the end) too.
  • plead-for-destruction
    29th Jun 2012 Member 0 Permalink
    @jacob1 (View Post)
    tried both, same error.

    1>------ Build started: Project: Powder toy, Configuration: Debug Win32 ------
    1> elementdata.c
    1>src\elementdata.c(195): error C2059: syntax error : 'constant'
    1>src\elementdata.c(373): fatal error C1903: unable to recover from previous error(s); stopping compilation
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • jacob1
    29th Jun 2012 Developer 0 Permalink
    On line 194, if there a comma at the end? Also, you're compiling in debug mode, which is slower when ran as an exe compared to release, so don't release a mod compiled like that.
  • plead-for-destruction
    29th Jun 2012 Member 0 Permalink
    @jacob1 (View Post)
    im not finished :P

    just testing to see if i get errors.

    and yes there is a comma.
  • jacob1
    29th Jun 2012 Developer 0 Permalink
    @plead-for-destruction (View Post)
    I just checked it, there's also no comma after 0.01f * CFDS
  • plead-for-destruction
    29th Jun 2012 Member 0 Permalink
    @jacob1 (View Post)
    I LOVE YOU! it compiled :3
  • jacob1
    29th Jun 2012 Developer 0 Permalink
    @plead-for-destruction (View Post)
    Okay, if you need any more help, just ask, but I'm going to sleep now.