Compiling errors
#1

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(132 3) : error 001: expected token: "{", but found "new"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(170 4) : warning 201: redefinition of constant/macro (symbol "MAX_BODY_PARTS")
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(170 5) : warning 201: redefinition of constant/macro (symbol "MAX_WEAPONS")
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 62) : error 017: undefined symbol "SendErrorMessage"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 6 : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 72) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 73) : error 004: function "AdministratorMessage" is not implemented
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 75) : error 004: function "AdministratorMessage" is not implemented
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 79) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 81) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 82) : error 004: function "AdministratorMessage" is not implemented
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 84) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 0 : error 017: undefined symbol "SendErrorMessage"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 14) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 1 : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 19) : error 004: function "AdministratorMessage" is not implemented
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 21) : error 004: function "AdministratorMessage" is not implemented
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 25) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 27) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 2 : error 004: function "AdministratorMessage" is not implemented
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 30) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 37) : error 017: undefined symbol "policecap"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 37) : warning 215: expression has no effect
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 37) : error 001: expected token: ";", but found "]"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(660 37) : error 029: invalid expression, assumed zero
C:\Users\BOGDAN\GM\gamemodes\frank.pwn(66037) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

//
Can anyone help me with those errors? I'm a newbie in scripting so i do not understand what they mean or what i must to do.
Reply
#2

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(132 6) : error 001: expected token: "{", but found "new"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(170 : warning 201: redefinition of constant/macro (symbol "MAX_BODY_PARTS")
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(170 9) : warning 201: redefinition of constant/macro (symbol "MAX_WEAPONS")
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 67) : error 017: undefined symbol "SendErrorMessage"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 72) : warning 219: local variable "GetPlayerNameEx" shadows a variable at a preceding level
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 74) : error 001: expected token: "}", but found ")"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 74) : error 029: invalid expression, assumed zero
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 74) : warning 215: expression has no effect
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : error 012: invalid function call, not a valid address
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : warning 215: expression has no effect
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : error 001: expected token: ";", but found ")"
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : error 029: invalid expression, assumed zero
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664** * ** * ** *Copyright © 1997-2006, ITB CompuPhase


8 Errors.



I've resolved the error about "GetPlayerNameEx" but noi, i have those kind of errors. Any help please?
Reply
#3

Post code on pastebin or use the code tag. Show the lines with errors (code). And this isn't the right section for coding help. Post this in the scripting help section.
Reply
#4

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(132 6) : error 001: expected token: "{", but found "new"

Код:
1326: new Damage[MAX_PLAYERS][MAX_WEAPONS][W_DAMAGE][MAX_BODY_PARTS];
C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 67) : error 017: undefined symbol "SendErrorMessage"

Код:
65967:         return SendErrorMessage(playerid, "* Un admininistrator a dat deja un raspuns la acest repoart sau jucatorul respectiv nu a dat report !");


C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 72) : warning 219: local variable "GetPlayerNameEx" shadows a variable at a preceding level

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 74) : error 001: expected token: "}", but found ")"

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 74) : error 029: invalid expression, assumed zero

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 74) : warning 215: expression has no effect

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : error 012: invalid function call, not a valid address

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : warning 215: expression has no effect

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : error 001: expected token: ";", but found ")"

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : error 029: invalid expression, assumed zero

C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(659 7 : fatal error 107: too many error messages on one line


Код:
  
this is from 65970 to 65982
  {
        new pos = 30;
        new GetPlayerNameEx[MAX_PLAYER_NAME];
        if(pos < 30-1) pos = 30;
        format(szMessage, 128,"[REPORT] Administratorul %s ti-a raspuns la report. Motiv: %.*s ...", GetPlayerNameEx{playerid), pos, szReason);
        SendClientMessage(iPlayerID, COLOR_YELLOW, szMessage);
        format(szMessage, 128,"... %s", szReason[pos]);
        SendClientMessage(iPlayerID, COLOR_YELLOW, szMessage);
        format(szMessage, 128,"[AdmCmd] %s (%d) i-a raspuns la report lui %s (%d). Motiv: %.*s ...", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(iPlayerID), iPlayerID, pos, szReason);
        AdministratorMessage(COLOR_ORANGE,szMessage,1);
        format(szMessage, 128,"... %s", szReason[pos]);
        AdministratorMessage(COLOR_ORANGE,szMessage,1);
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)