Here's another addition of: Damn streamer, back at it again with the weird shit!
So the way I do mapping is fairly simple, but a little complex. I keep files in an include folder and use the #include tag under OnGameModeInit so it makes files easier to create, edit, etc.
Here is a snip:
And it was working great! But now I went to add to a file and recompile and now some mapping isn't showing up.
So lets say I have an interior in file 'Interior' and an exterior in the file 'Exterior'
If I include Exterior before Interior, none of the interior mapping shows up. If I include Interior before Exterior, none of the exterior mapping shows up. It's the damnedest thing I've ever seen.
Anyone know why?
Edit: The files just have CreateDynamicObject lines.
So the way I do mapping is fairly simple, but a little complex. I keep files in an include folder and use the #include tag under OnGameModeInit so it makes files easier to create, edit, etc.
Here is a snip:
PHP Code:
public OnFilterScriptInit()
{
for(new i; i < MAX_PLAYERS; i++)
{
TogglePlayerControllable(i, 0);
SetTimerEx("MappingReload", GetPlayerPing(i) * 4, 0, "i", i);
RemoveBuildings(i);
}
// bunch of other #include's.
#include ./includes/Utilities/World.pwn
return 1; // Not indented on purpose. Loose indentation errors if it is because none of the code in the files are indented.
}
So lets say I have an interior in file 'Interior' and an exterior in the file 'Exterior'
If I include Exterior before Interior, none of the interior mapping shows up. If I include Interior before Exterior, none of the exterior mapping shows up. It's the damnedest thing I've ever seen.
Anyone know why?
Edit: The files just have CreateDynamicObject lines.