01.02.2014, 19:48
I re-put on the /interiors command, these are the errors now:
Код:
C:\Users\Ryan\Desktop\Ryan's Server\gamemodes\VGRP.pwn(54875) : error 017: undefined symbol "AdminDuty" C:\Users\Ryan\Desktop\Ryan's Server\gamemodes\VGRP.pwn(54875) : warning 215: expression has no effect C:\Users\Ryan\Desktop\Ryan's Server\gamemodes\VGRP.pwn(54875) : error 001: expected token: ";", but found "]" C:\Users\Ryan\Desktop\Ryan's Server\gamemodes\VGRP.pwn(54875) : error 029: invalid expression, assumed zero C:\Users\Ryan\Desktop\Ryan's Server\gamemodes\VGRP.pwn(54875) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
CMD:interiors(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 4) { if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6) { SendClientMessage(playerid,COLOR_WHITE, "You can only chat while off-duty. Type /aduty to go on-duty."); return 1; } ShowInteriorDialog(playerid); } else { SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!"); } return 1; }