SA-MP Forums Archive
help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help (/showthread.php?tid=473105)



help - kosa451 - 01.11.2013

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) {



Re: help - SAMProductions - 01.11.2013

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



Re: help - Konstantinos - 01.11.2013

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.


Re: help - kosa451 - 01.11.2013

I get the same errors