12.05.2017, 22:33
Hello, I am trying to resolve this issue but can't find a solution. I hope you guys can help.
It gives me these errors
But then, why I remove the "//" from line 10585 string it gives me even more errors.
Код:
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; }
Код:
pwn(6452) : warning 217: loose indentation pwn(10595) : error 017: undefined symbol "string" pwn(10601) : error 017: undefined symbol "string" pwn(10601) : error 017: undefined symbol "string" pwn(10601) : error 029: invalid expression, assumed zero pwn(10601) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
pwn(6452) : warning 217: loose indentation pwn(115432) : warning 217: loose indentation pwn(115432) : error 029: invalid expression, assumed zero pwn(115437) : warning 217: loose indentation pwn(115447) : warning 217: loose indentation pwn(131330) : error 017: undefined symbol "main" pwn(131632) : error 029: invalid expression, assumed zero pwn(131632) : error 004: function "S@@_OnGameModeInit" is not implemented pwn(131639) : warning 225: unreachable code pwn(131639) : error 029: invalid expression, assumed zero pwn(131639) : error 004: function "S@@_OnGameModeExit" is not implemented pwn(131644) : error 030: compound statement not closed at the end of file (started at line 112036) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.