reborn wrote on Thu, 12 August 2010 15:29 |
You forgot the script registrant.
|
Like this?>::
scriptregistrant<MySwapCharScript> MySwapCharScript_Registrant("MySwapCharScript","");
Also do I add this in gmmain.cpp or MySwapCharScript.cpp(for my case).I don't know as I've never done this before.
I also get an error during build if I put it in either/or gmmain or the other .cpp::
1>------ Build started: Project: SSGM, Configuration: Debug Win32 ------
1>Compiling...
1>MySwapCharScript.cpp
1>.\MySwapCharScript.cpp(20) : error C2143: syntax error : missing ';' before '<'
1>.\MySwapCharScript.cpp(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://c:\Westwood\RenegadeFDS\Server\New Folder\tmp\scripts\debug\BuildLog.htm"
1>SSGM - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[Updated on: Thu, 12 August 2010 15:08]
Report message to a moderator