/contract fix.
#1

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);
    }
}
That's the contract code, and I get these errors:
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
I've marked the error messages with a // ERROR, I've been trying to fix this for hours.
Reply


Messages In This Thread
/contract fix. - by Jack.7331 - 16.03.2012, 17:15
Re: /contract fix. - by Lil-D - 16.03.2012, 17:17
AW: /contract fix. - by Blunt P - 16.03.2012, 17:18
Re: AW: /contract fix. - by Jack.7331 - 16.03.2012, 17:35
Re: /contract fix. - by Ronaldo_raul™ - 16.03.2012, 18:08
Re: /contract fix. - by Jack.7331 - 16.03.2012, 18:42
Re: /contract fix. - by Ronaldo_raul™ - 17.03.2012, 08:47

Forum Jump:


Users browsing this thread: 1 Guest(s)