Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


More errors

This topic is 5742 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, now I''ve got DirectX working, now I''m having another problem. Code: int Game_Main(void *parms = NULL, int num_parms = 0) { for (int color=1; color < 255 color++) { // fill with random RGB values palette[color].peRed = rand()%256; palette[color].peGreen = rand()%256; palette[color].peBlue = rand()%256; // set flags field to pc_nocollapse palette[color].peFlags = PC_NOCOLLAPSE; } // now fil in entry 0 and 255 with black and white palette[0].peRed = 0; palette[0].peGreen = 0; palette[0].peBlue = 0; palette[0].peFlags = PC_NOCOLLAPSE; // this is the main loop of the game, do all your processing // here return(1); } // end Game_Main Errors: --------------------Configuration: test2 - Win32 Debug-------------------- Compiling... test2.cpp C:\Documents and Settings\Ryan Gibson\Desktop\test2\test2.cpp(54) : warning C4101: ''buffer'' : unreferenced local variable C:\Documents and Settings\Ryan Gibson\Desktop\test2\test2.cpp(101) : error C2146: syntax error : missing '';'' before identifier ''color'' Error executing cl.exe. test2.exe - 1 error(s), 1 warning(s) Whats wrong?

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!