Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Mapping Issue

$
0
0
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:

PHP Code:

public OnFilterScriptInit()
{
    for(new 
iMAX_PLAYERSi++)
    {
        
TogglePlayerControllable(i0);
        
SetTimerEx("MappingReload"GetPlayerPing(i) * 40"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.


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.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>