Quote:
Originally posted by rosh.r03
fine scrape that but now as you know u've been on for a while and i wanted to get into the "feel" of verge but now i'm scraping that aswell and i've started my map but when i run it it comes up with:
tutorail.vc(1):expecting a function declarotion-do you have a missing brace?
this is my tutorial.vc
startup script: MapInit()
void AutoExec()
{
SetAppName("rosh is the best");
Map("tutorial.map");
}
cud you help my plz?
Okay. Lines which are comments to yourself need to begin in a ' // '
Example:
// This is my tutorial VC
Next, I'm not sure what that "startup script" line is doing. It may just be a comment or command that I'm not familar with, but I think that setting the first script to be executed needs to be done in maped, not added via the .VC file.
FYI, you shouldn't need anything in tutorial.VC It looks more like your system.VC file. Here are two sample, very basic .VC files that, Unless I've missed something, should let you wander around tutorial.map as Darin.
Finally, could you please do me a HUGE favour and put a wee bit more effort into your spelling? It's always worrying when someone asks for programming help and has spelling like that, because you can never tell if the errors they're getting might just be because of a mispelled line :)
// SYSTEM.VC
int plr, plrx, plry; // GLOBAL VARIABLES
void AutoExec()
{
SetAppName("rosh is the best");
Map("tutorial.map");
}
// TUTORIAL.VC
// Load up tutorial.map in Maped and use the map
// properties dialogue to choose mapinit as the
// starting function
void MapInit()
{
plr = EntitySpawn( 5, 5, "darin.chr");
}