|
-
Case expression not constant
hello, im making a simple rpg and this error kept coming up, and i dont know how to fix it. these are the cases i have.
switch (job)
{
case "human": hp << 100;
break;
case "troll": hp << 120;
break;
case "elf": hp << 90;
break;
case "wizard": hp << 80;
break;
}
Similar Threads
-
By geo039 in forum ASP.NET
Replies: 3
Last Post: 08-06-2007, 03:46 PM
-
Replies: 1
Last Post: 10-01-2006, 05:08 PM
-
By Dark Rain in forum Java
Replies: 8
Last Post: 09-30-2005, 06:42 PM
-
By VanDam in forum Database
Replies: 0
Last Post: 07-09-2005, 04:18 AM
-
By Yoel Martinez in forum VB Classic
Replies: 1
Last Post: 12-12-2000, 03:17 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks