[FilterScript] Maploader
#11

#define CHANGE_INTERVAL 15*60000 //change this to the amount of minutes to trigger the map change, change the first number (time in minutes)

This is not 15 minutes, timers are bugged read here.

https://sampforum.blast.hk/showthread.php?tid=289675

pawn Code:
if(fase == 0)
{
}
if(fase == 1)
{
}
Do it like this....

pawn Code:
switch(fase)
{
    case 0: { }
    case 1: { }
}
Also really bad idea to dump all your map code into that function it's messy and will cause the function to potentially extend for thousands of lines depending on how many maps there is I would make includes then call the map functions inside of them which is a lot easier to organize for example.

pawn Code:
#include <maps\mymap1>
#include <maps\mymap2>

case 0: { LoadMyMap1(); }
case 1: { LoadMyMap2(); }
Easier to read, easier to edit, easier to keep organized don't you think?
Reply


Messages In This Thread
Maploader - by Jstylezzz - 15.02.2013, 14:10
Re: Maploader - by Niko_boy - 15.02.2013, 14:27
Re: Maploader - by Jstylezzz - 15.02.2013, 14:29
Re: Maploader - by Yves - 16.02.2013, 07:13
Re: Maploader - by CrewMaster - 16.02.2013, 07:17
Re: Maploader - by Jstylezzz - 17.02.2013, 15:21
Re: Maploader - by Sting. - 17.02.2013, 15:22
Re: Maploader - by zClaw - 24.04.2013, 19:31
Re: Maploader - by tboysamp - 24.04.2013, 21:18
Re: Maploader - by punklord - 25.04.2013, 11:01
Re: Maploader - by Pottus - 25.04.2013, 16:44
Re: Maploader - by Jstylezzz - 25.04.2013, 16:57
Re: Maploader - by Pottus - 25.04.2013, 17:06
Re: Maploader - by Jstylezzz - 25.04.2013, 17:10
Re: Maploader - by Jstylezzz - 07.05.2013, 15:58
Re: Maploader - by Mark_Samp - 07.05.2013, 16:08
Re: Maploader - by ahmad95 - 07.05.2013, 16:54
Re: Maploader - by [FSaF]Jarno - 13.05.2013, 17:44
Re: Maploader - by Jstylezzz - 13.05.2013, 17:48
Re: Maploader - by iTheScripter - 08.07.2013, 18:04

Forum Jump:


Users browsing this thread: 3 Guest(s)