C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(2337) : warning 216: nested comment C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(3444) : warning 217: loose indentation C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(3942) : warning 217: loose indentation C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(3992) : warning 217: loose indentation C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(9423) : warning 217: loose indentation C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(11373) : warning 216: nested comment C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(12068) : error 017: undefined symbol "foreach" C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(12068) : error 029: invalid expression, assumed zero C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(12068) : error 017: undefined symbol "i" C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(12068) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
#include <YSI\y_iterate>
Add this line at the top of your mode
pawn Код:
|
C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(2338) : warning 216: nested comment C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(3445) : warning 217: loose indentation C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(3943) : warning 217: loose indentation C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(3993) : warning 217: loose indentation C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(9424) : warning 217: loose indentation C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(11374) : warning 216: nested comment C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(12069) : error 017: undefined symbol "foreach" C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(12069) : error 029: invalid expression, assumed zero C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(12069) : error 017: undefined symbol "i" C:\Users\user\Desktop\org\scr\script\gamemodes\NBGv1.0.9.2.pwn(12069) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Maybe show the lines... It would be much easier to say whats wrong!
|
CMD:resethunt(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 3) { if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty."); HuntedTime = 0; foreach(new i : Player) { if(Hunted[i] != 0) { SetPlayerHealth(i, 0.0); Hunted[i] = 0; } } SendClientMessage(playerid,COLOR_WHITE, "The grim reaper has awaken."); } return true; }
#include foreach
CMD:resethunt(playerid,params[]) {
if(PlayerInfo[playerid][pAdmin] >= 3) {
if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 5)
return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
HuntedTime = 0;
foreach(new i : Player) {
if(Hunted[i] != 0) {
SetPlayerHealth(i, 0.0);
Hunted[i] = 0;
}
}
SendClientMessage(playerid,COLOR_WHITE, "The grim reaper has awaken.");
}
return true;
}
pawn Код:
|
for(new i; i < MAX_PLAYERS; i++) { if(Hunted[i] != 0) { SetPlayerHealth(i, 0.0); Hunted[i] = 0; } }