Bug Into The Timer -
Mr.Obscure - 30.08.2010
pawn Код:
public OnGameModeInit
(){ new string
[MAX_PLAYER_NAME
];
new string1
[MAX_PLAYER_NAME
];
for(new c
=0;c
<CAR_AMOUNT;c
++) { Gas
[c
] = GasMax;
} LoadCar
();
CreateFoodMenus
();
LoadProperty
();
LoadBizz
();
LoadSBizz
();
LoadBoxer
();
LoadStuff
();
LoadIRC
();
LoadFamilies
();
LoadCK
();
LoadTurfs
();
LoadPapers
();
LoadDrugSystem
();
LoadContoCasino
();
LoadMatsSystem
();
LoadHQLocks
();
LoadTrunk
();
IRCInfo
[0][iPlayers
] = 0; IRCInfo
[1][iPlayers
] = 0; IRCInfo
[2][iPlayers
] = 0;
IRCInfo
[3][iPlayers
] = 0; IRCInfo
[4][iPlayers
] = 0; IRCInfo
[5][iPlayers
] = 0;
IRCInfo
[6][iPlayers
] = 0; IRCInfo
[7][iPlayers
] = 0; IRCInfo
[8][iPlayers
] = 0;
IRCInfo
[9][iPlayers
] = 0;
News
[hTaken1
] = 0; News
[hTaken2
] = 0; News
[hTaken3
] = 0; News
[hTaken4
] = 0; News
[hTaken5
] = 0;
format(string,
sizeof(string
),
"Nothing");
strmid(News
[hAdd1
], string,
0,
strlen(string
),
255);
strmid(News
[hAdd2
], string,
0,
strlen(string
),
255);
strmid(News
[hAdd3
], string,
0,
strlen(string
),
255);
strmid(News
[hAdd4
], string,
0,
strlen(string
),
255);
strmid(News
[hAdd5
], string,
0,
strlen(string
),
255);
format(string1,
sizeof(string1
),
"No-one");
strmid(News
[hContact1
], string1,
0,
strlen(string1
),
255);
strmid(News
[hContact2
], string1,
0,
strlen(string1
),
255);
strmid(News
[hContact3
], string1,
0,
strlen(string1
),
255);
strmid(News
[hContact4
], string1,
0,
strlen(string1
),
255);
strmid(News
[hContact5
], string1,
0,
strlen(string1
),
255);
PlayerHaul
[77][pCapasity
] = 100;
PlayerHaul
[78][pCapasity
] = 50;
SetGameModeText
("Miami City RP v0.1 - SAMP 0.3b");
SendRconCommand
("mapname San Fierro & Bay Side");
SendRconCommand
("weburl: http://miamicityrp.forumcommunity.it");
format(objstore,
sizeof(objstore
),
"MOLE: I got nothing, check back with me later.");
format(cbjstore,
sizeof(cbjstore
),
"HQ: Non c'и nulla nelle sue vicinanze, fuori.");
format(motd,
sizeof(motd
),
"Benvenuto su Miami City Role Play.");
gettime(ghour, gminute, gsecond
);
FixHour
(ghour
);
ghour
= shifthour;
if(!realtime
) { SetWorldTime
(wtime
);
} SetPDistance
(10);
EnableTirePopping
(1);
EnableZoneNames
(1);
AllowInteriorWeapons
(1);
AllowAdminTeleport
(0);
UsePlayerPedAnims
();
//ShowPlayerMarkers(false); DisableInteriorEnterExits
();
EnableStuntBonusForAll
(0);
i've a bug: all timers is off, this is the public OnGameModeInit maybe into that code are the bug, can u help me?
Re: Bug Into The Timer -
Calgon - 30.08.2010
What is the bug you're experiencing? Your post wasn't very clear.
Re: Bug Into The Timer -
Mr.Obscure - 30.08.2010
all timers is off... maybe is here:
pawn Код:
if (realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour);
}
SetTimer("LottoSystem",1000*60*60*2, 1);
SetTimer("SendMSG", 15*60000, true);
hackchecktimer = SetTimer("GlobalHackCheck", 1000, 1);
synctimer = SetTimer("SyncUp", 60000, 1);
unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
othtimer = SetTimer("OtherTimer", 1000, 1);
cartimer = SetTimer("CarCheck", 30000, 1);
pickuptimer = SetTimer("CustomPickups", 1000, 1);
spectatetimer = SetTimer("Spectator", 2000, 1);
idletimer = SetTimer("IdleKick", idletime, 1);
productiontimer = SetTimer("Production", 300000, 1); //5 mins (300000)
accountstimer = SetTimer("SaveAccounts", 900000, 1); //15 mins every account saved
checkgastimer = SetTimer("CheckGas", RunOutTime, 1);
stoppedvehtimer = SetTimer("StoppedVehicle", RunOutTime, 1);
checkcarhealthtimer = SetTimer("CheckCarHealth", 10000, 1);
burgertimer = SetTimer("UpdateBurgerPositions", 1000, 1);
chickentimer = SetTimer("UpdateChickenPositions", 1000, 1);
tracetimer = SetTimer("TraceLastCall", 300000, 1);
//updateplayerpos = SetTimer("UpdatePlayerPosition", 3000, 1);
//for(new i = 0; i < sizeof(CarSpawns); i++)
/* for(new i = 0; i < 165; i++)
{
AddCar(i);
}
CarInit();*/
Re: Bug Into The Timer -
Mr.Obscure - 30.08.2010
into the functions . . .
pawn Код:
//-------------------------------COUNTDOWN PUBLICS------------------------------------------------------//
public OnPlayerScreenFade(playerid, color, speed)
{
return 1;
}
forward SendMSG();
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(COLOR_ORANGE, RandomMSG[randMSG]);
}
forward NeedToEat(playerid);
public NeedToEat(playerid)
{
new Float:health;
GetPlayerHealth(playerid, health);
if(CurHealth[playerid] >= health)
{
SendClientMessage(playerid,COLOR_YELLOW2,"-| Il tuo stomaco ha fame, vai a mangiare qualcosa! |-");
SetPlayerHealth(playerid,health-5);
CurHealth[playerid] = health;
}
else
{
CurHealth[playerid] = health;
}
}
public OnPlayerScreenColorFade(playerid, color, speed)
{
return 1;
}
public OnPlayerFadeFlashed(playerid, color, speed)
{
return 1;
}
public CD()
{
new string[8];
if(CountDown == 1)
{
KillTimer(CDTimer);
GameTextForAll("~g~VIA!",3000,3);
UCD = 0;
return 1;
}
CountDown--;
format(string,sizeof(string),"~w~%d",CountDown);
GameTextForAll(string,1000,3);
return 1;
}
public CheckHealth(playerid)
{
if(gPlayerLogged[playerid] == 1)
{
if(Svenuto[playerid] == 1){return 1;}
new name[MAX_PLAYER_NAME];
new string[64];
new Float:health;
GetPlayerHealth(playerid,health);
if(health < 15)
{
GetPlayerName(playerid, name, sizeof(name));
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid,"SWAT","gnstwall_injurd",4.1,1,1,1,1,20000);
format(string, sizeof(string), "* %s si sente male e cade per terra.", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessage(playerid, COLOR_LIGHTRED, "* I medici hanno un minuto per soccorerti, altrimenti morirai...");
Svenuto[playerid] = 1;
SetTimerEx("TempoSvenuto", 60000, false, "i", playerid);
}
}
return 1;
}
public TempoSvenuto(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health > 15)
{
Svenuto[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sei ritornato in forma grazie alle cure!");
return 1;
}
else
{
SetPlayerHealth(playerid, 0.0);
Svenuto[playerid] = 0;
}
return 1;
}
public UnfreezeTimer(playerid)
{
TogglePlayerControllable(playerid, true);
return 1;
}
public LottoSystem()
{
new rand = random(80);
if(rand < 77) { rand += 3; }
Lotto(rand);
}
Re: Bug Into The Timer -
LarzI - 30.08.2010
I don't understand what your problem is..
Re: Bug Into The Timer -
Mr.Obscure - 30.08.2010
the timer of the jail, the timer of the hospital, the timer of the anti cheat etc... are bugged, they do not work... do you want see that? D:
Re: Bug Into The Timer -
Mr.Obscure - 30.08.2010
please help me, I need it D:
Re: Bug Into The Timer -
CyNiC - 30.08.2010
Several timers in the same time cause conflitc, maybe this be the reason for this.
Re: Bug Into The Timer -
Mr.Obscure - 02.09.2010
i has not understand . . . ( my english is bad )
Re: Bug Into The Timer -
LarzI - 02.09.2010
He means that you have started to many timers at one point, so it might bug the rest of the script.
[This forum requires that you wait 120 seconds between posts. Please try again in 44 seconds.] SERIOUSLY F*** THAT S***!