19.10.2013, 11:04
Eu tentei botar em meu gm esse codigo de quando um suspeito й morto por um policial ele й preso .
mas nгo tive sucesso em colocar , alguem pode me ajudar ?
Erros :
Codigo :
mas nгo tive sucesso em colocar , alguem pode me ajudar ?
Erros :
Код:
:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5234) : error 010: invalid function or declaration C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5238) : error 017: undefined symbol "playerid" C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5238) : error 008: must be a constant expression; assumed zero C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5239) : error 010: invalid function or declaration C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5240) : error 010: invalid function or declaration C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5241) : error 010: invalid function or declaration C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5246) : error 029: invalid expression, assumed zero C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5248) : error 021: symbol already defined: "SafeGivePlayerMoney" C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5248) : warning 215: expression has no effect C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(5248) : error 001: expected token: ";", but found ")" C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18111) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18141) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18240) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18267) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18303) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18461) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18487) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18515) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(18544) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(38771) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(38789) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(41945) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(64693) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(67023) : warning 219: local variable "price" shadows a variable at a preceding level C:\Users\dani\Desktop\Projeto Brasil Holiday\gamemodes\12 de setembro\rev_2.pwn(76859) : error 021: symbol already defined: "SafeGivePlayerMoney" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors.
Код:
if(WantedPoints[playerid] >= 1) { //if(gTeam[killerid] == 2 && CrimInRange(30.0, playerid,killerid)) //{ new price = WantedPoints[playerid] * 100; if(PlayerInfo[killerid][pMembro] == 1 || PlayerInfo[killerid][pLider] == 1) if(PlayerInfo[killerid][pMembro] == 2 || PlayerInfo[killerid][pLider] == 2) if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3) { format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price); GameTextForPlayer(killerid, gstring, 5000, 1); ConsumingMoney[killerid] = 1; SafeGivePlayerMoney(killerid, price / 2); PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0); SafeGivePlayerMoney(playerid, - price); PlayerInfo[playerid][pJailed] = 1; PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180); format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Cadeia, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price); SendClientMessage(playerid, COLOR_LIGHTRED, gstring); WantedPoints[playerid] = 0; SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pDrogas] = 0; PlayerInfo[playerid][pDrogas2] = 0; PlayerInfo[playerid][pDrogas3] = 0; PlayerInfo[playerid][pMats] = 0; }