JebusJM Posted May 12, 2011 Share Posted May 12, 2011 Hey all, I'm trying to make a spawn script, but it's always giving me an error for ",". It's probably obvious, but I must be overlooking something. Here it is: void main() { CreateObject = ( OBJECT_TYPE_CREATURE, "belcameron" , Location(Vector(186.27,74.31,12.62), -1,0)); } Thanks. Link to comment Share on other sites More sharing options...
TimBob12 Posted May 12, 2011 Share Posted May 12, 2011 Between the 1 and 0 you have a comma bot a dot Link to comment Share on other sites More sharing options...
JebusJM Posted May 12, 2011 Author Share Posted May 12, 2011 Tried this and still getting the same error: void main() { CreateObject = ( OBJECT_TYPE_CREATURE, "belcameron" , Location(Vector(186.27,74.31,12.62), -1.0)); } The error: Error: syntax error at "," Thanks for the help so far. Link to comment Share on other sites More sharing options...
TimBob12 Posted May 12, 2011 Share Posted May 12, 2011 I cant remember but i dont think you need the comma after the bracket of 3 numbers. Link to comment Share on other sites More sharing options...
JebusJM Posted May 12, 2011 Author Share Posted May 12, 2011 That didn't do the trick, but I randomly tried compiling it again and it worked. What a strange night I'm having... Thanks again mate. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.