16.03.2012, 17:15
pawn Код:
CMD:contract(playerid, params[]) {
if(playerVariables[playerid][pAdminDuty] == 1) {
SendClientMessage(playerid, COLOR_RED, "You can not contract somebody while on administrator duty.");
else //Invalid expression, assuming 0.
new contracted, //Expected token ";" , found "new".
contractreason,
contractprice; //Error, Never used.
contracted = playerid
contractreason = "" //Empty Statement [start]
SendClientMessage(playerid, COLOR_GREY, "You have contracted %d for %d. Reason: %d.", contracted, contractprice, contractreason);
}
if(playerVariables[playerid][pGroup] == 10); //Empty Statement [end]
playerVariables[contracted][pContracted] = 1;
SendClientMessage(playerid, COLOR_NICESKY, "Somebody has requested a contract on %d for %d. Reason: %d. ((If the reason isn't valid, ignore the contract.))", contracted, contractprice, contractreason);
}
}
pawn Код:
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4032) : warning 203: symbol is never used: "wantedreason"
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4041) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4041 -- 4042) : warning 215: expression has no effect
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4042) : error 001: expected token: ";", but found "new"
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4046) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4046 -- 4047) : error 006: must be assigned to an array
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4044) : warning 203: symbol is never used: "contractprice"
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4047) : warning 204: symbol is assigned a value that is never used: "contractreason"
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4046) : warning 204: symbol is assigned a value that is never used: "contracted"
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4046 -- 4049) : error 036: empty statement
C:\Users\Admin\Desktop\Server Uploads\vx-rp.pwn(4046 -- 4049) : fatal error 107: too many error messages on one line