#1

error:
Код:
C:\Users\Linus\Desktop\T\PZG.pwn(67975) : error 028: invalid subscript (not an array or too many subscripts): "pAdminDuty"
C:\Users\Linus\Desktop\T\PZG.pwn(67975) : warning 215: expression has no effect
C:\Users\Linus\Desktop\T\PZG.pwn(67975) : error 001: expected token: ";", but found "]"
C:\Users\Linus\Desktop\T\PZG.pwn(67975) : error 029: invalid expression, assumed zero
C:\Users\Linus\Desktop\T\PZG.pwn(67975) : fatal error 107: too many error messages on one line

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


4 Errors.

Line:
pawn Код:
else if(PlayerInfo[iTargetID][pAdmin] >= 1 && pAdminDuty[iTargetID] == 1) {
Reply
#2

Try This:
pawn Код:
else if(PlayerInfo[iTargetID][pAdmin] >= 1 && pAdminDuty[iTargetID] == 1); {
Reply
#3

You're probably added pAdminDuty into the enum as well as it's declared as:
pawn Код:
new pAdminDuty[MAX_PLAYERS];
too. Change the name to something else.

Quote:
Originally Posted by SAMProductions
Посмотреть сообщение
Try This:
pawn Код:
else if(PlayerInfo[iTargetID][pAdmin] >= 1 && pAdminDuty[iTargetID] == 1); {
Never use semicolon after if statements, more errors will be given.
Reply
#4

I get the same errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)