Hello, I am trying to resolve this issue but can't find a solution. I hope you guys can help.
Код:
PayDay()
{
new string[128];
foreach(Player, i) if(PlayerInfo[i][pLevel] > 0)
{
if(GetPVarType(i, "debtMsg"))
{
if(PlayerInfo[i][pJailTime] < 1 && !IsACop(i) && PlayerInfo[i][pWantedLevel] < 6) {
format(string,sizeof(string),"You're failing to pay your debt of $%d - now the police are on the look out for you.",GetPlayerCash(i));
SendClientMessage(i, COLOR_LIGHTRED, string);
PlayerInfo[i][pCrimes]++;
SetPlayerWantedLevel(i, ++PlayerInfo[i][pWantedLevel]);
}
}
if(PlayerInfo[i][pPayReady] >= 6) {
new code = Random(100000, 999999);
PayCheckCode[i] = code;
SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
SendClientMessage(i, COLOR_WHITE,"Information on paychecks: {33CCFF}/payhelp {FFFFFF}or {33CCFF}/taxhelp");
SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
SendClientMessage(i, COLOR_WHITE,"Sign the check to receive your paycheck.");
SendClientMessage(i, COLOR_LIGHTBLUE, "Type /signcheck");
SendClientMessage(i, COLOR_WHITE,"You have 5 minutes to sign the check before it becomes invalid.");
SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
GameTextForPlayer(i, "~w~Type /signcheck", 2500, 1);
WasHereForPaycheck[i] = 1;
SetTimer("LastAlertPayCheck", 240000, false);
}
else SendClientMessage(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a paycheck.");
}
for (new x = 0; x < MAX_POINTS; x++)
{
Points[x][Announced] = 0;
if(Points[x][Vulnerable] > 0)
{
Points[x][Vulnerable]--;
UpdatePoints();
}
if(Points[x][Vulnerable] == 0 && Points[x][Type] >= 0 && Points[x][Announced] == 0 && Points[x][ClaimerId] == INVALID_PLAYER_ID)
{
format(string, sizeof(string), "%s has become available for capture.", Points[x][Name]);
SendClientMessageToAllEx(COLOR_YELLOW, string);
//SetPlayerCheckpoint(i, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz], 3);
ReadyToCapture(x);
Points[x][Announced] = 1;
}
}
Misc_Save();
return 1;
}
ReadyToCapture(pointid)
{
LINE 10585 //new string[128];
foreach(new i: Player)
{
if(PlayerInfo[i][pFMember] < INVALID_FAMILY_ID)
{
if(Points[pointid][Type] == 3 && Points[pointid][Type] == 4) return 1;
if(Points[pointid][CapCrash] != 1)
{
//format(string, sizeof(string), "%s has become available to capture! Stand at here and /capture it!", Points[pointid][Name]);
//Points[pointid][CaptureProccessEx] = 1;
LINE 10595 Points[pointid][CaptureProccess] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, Points[pointid][Pointx], Points[pointid][Pointy], Points[pointid][Pointz], 10.0, _, _, _, _, _,i);
}
}
}
if(Points[pointid][CapCrash] == 1)
{
LINE 10601 format(string, sizeof(string), "%s has successfully attempted to take over of %s for %s, it will be theirs in %d minutes!", Points[pointid][PlayerNameCapping], Points[pointid][Name], FamilyInfo[Points[pointid][ClaimerTeam]][FamilyName], Points[pointid][TakeOverTimer]);
Points[pointid][CaptureProccessEx] = 2;
Points[pointid][CaptureProccess] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, Points[pointid][Pointx], Points[pointid][Pointy], Points[pointid][Pointz], 10.0, _, _, _, _, _,_);
}
return 1;
}
But then, why I remove the "//" from line 10585 string it gives me even more errors.
Fatal error means the compiler doesn't bother anymore on checking the rest of the code because what it already checked is really fucked up. That being said, the other errors doesn't appear 'because you removed the '//'', they are already there and you have to fix them aswell.