Raised This Month: $ Target: $400
 0% 

Compile Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
@.SizNeR
Member
Join Date: Jun 2013
Old 08-10-2013 , 02:56   Compile Error
Reply With Quote #1

Can some one please help me?

Error:
Code:
Error: Expected token: "}", but found "-string-" on line 211
Code Error:
Code:
enum _:Data
{
	Cost[ 10 ],
	Health[ 5 ],
	Armor[ 5 ],
	Damage[ 3 ],
	CashBonus[ 5 ],
	Gravity[ 5 ],
	Speed[ 5 ]
};

new szKnives[ ][ Data ] =
{
	{ "0",		"0",	"0",	"0",	"0",	"0", 	"0.0"	 },
	{ "15000",	"7",	"10",	"3"	"25",	"3",	"0.1"	 },
	{ "45000",	"21",	"30",	"5",	"40",	"6", 	"0.2"	 },
	{ "75000",	"35",	"50",	"8",	"55",	"10", 	"0.25"	 },
	{ "125000",	"49",	"70",	"12",	"70",	"15", 	"0.3"	 },
	{ "225000",	"63",	"90",	"16",	"90",	"26", 	"0.35"	 },
	{ "400000",	"77",	"110",	"20",	"105",	"30", 	"0.4"	 },
	{ "650000",	"84",	"130",	"25",	"125",	"49", 	"0.45"	 }
};
@.SizNeR is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-10-2013 , 03:21   Re: Compile Error
Reply With Quote #2

{ "15000", "7", "10", "3", "25", "3", "0.1" },

Seems like the strings are unnecessary.
Code:
enum Data {     Cost,     Health,     Armor,     Damage,     CashBonus,     Gravity,     Float:Speed }; new szKnives[][Data] = {     { 0,        00,      00,      0,  0.0 },     { 15000,    710,     325,     30.1 },     { 45000,    21, 30,     540,     6,  0.2 },     { 75000,    35, 50,     855,     10, 0.25 },     { 125000,   49, 70,     12, 70,     15, 0.3 },     { 225000,   63, 90,     16, 90,     26, 0.35 },     { 400000,   77, 110,    20, 105,    30, 0.4 },     { 650000,   84, 130,    25, 125,    49, 0.45 } };
__________________

Last edited by Black Rose; 08-10-2013 at 03:31.
Black Rose is offline
@.SizNeR
Member
Join Date: Jun 2013
Old 08-10-2013 , 03:31   Re: Compile Error
Reply With Quote #3

Quote:
Originally Posted by Black Rose View Post
{ "15000", "7", "10", "3", "25", "3", "0.1" },
Opps, Thanks
@.SizNeR is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode