Impostos das Casas -
Nayara._. - 02.09.2012
Estou com problema no impostos da casa, funciona assim quando alguem tem uma casa ai tinha que apareзer junto com o salбrio '' foi cobrado os impostos da sua casa blбblб '' sу que nгo apareзe quando eu tenho uma casa olha os codigos:
pawn Код:
if(dini_Int(file, "Casa") == 1){
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")-700);
format(string, sizeof(string), "{0099FF}[x]{CCCCFF} Vocк tem uma casa e foi cobrado 700 reais de impostos [ Agua + Luz + Dispesas ]");
SendClientMessage(i, Verde, string);
}
E outro bug й que eu coloquei pra quando entra na favela ganha armas e quando sai perde elas, sу que nгo ta dando certo fica tipo floodando apareзendo Vocк entrou na favela e ganhou armas, vc entrou na favela e ganhou armas ... :
pawn Код:
if(PlayerToPoint(7.0, i, 2221.3298,-1108.0605,26.2748) || PlayerToPoint(7.0, i, 2159.1794,-1004.8632,62.7888) || PlayerToPoint(7.0, i, 2326.2520,-1079.5879,50.0407) || PlayerToPoint(7.0, i, 2058.4858,-979.0306,46.2862)){ //Gametext favela ._.
new playerid;
SendClientMessage(playerid, 0x408080FF,"Vocк entrou na favela e ganhou armas.");
GivePlayerWeapon(playerid, 28, 99999);
GivePlayerWeapon(playerid, 26, 99999);
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 9, 99999);
Re: Impostos das Casas -
CaioTJF - 02.09.2012
Код:
// Topo GM
new bool:InFavela[MAX_PLAYERS];
//
if(PlayerToPoint(7.0, i, 2221.3298,-1108.0605,26.2748) || PlayerToPoint(7.0, i, 2159.1794,-1004.8632,62.7888) || PlayerToPoint(7.0, i, 2326.2520,-1079.5879,50.0407) || PlayerToPoint(7.0, i, 2058.4858,-979.0306,46.2862)){ //Gametext favela ._.
if(InFavela[playerid] == true)
return 0;
InFavela[playerid] = true;
new playerid;
SendClientMessage(playerid, 0x408080FF,"Vocк entrou na favela e ganhou armas.");
GivePlayerWeapon(playerid, 28, 99999);
GivePlayerWeapon(playerid, 26, 99999);
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 9, 99999);
E quando o cara sair da favela, vocк coloca InFavela[playerid] = false
Re: Impostos das Casas -
Nayara._. - 02.09.2012
Errors
pawn Код:
C:\Documents and Settings\Nayara\Desktop\BVV\gamemodes\BVV.pwn(21720) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Nayara\Desktop\BVV\gamemodes\BVV.pwn(21727) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Nayara\Desktop\BVV\gamemodes\BVV.pwn(21730) : error 017: undefined symbol "inFavela"
C:\Documents and Settings\Nayara\Desktop\BVV\gamemodes\BVV.pwn(21730) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Nayara\Desktop\BVV\gamemodes\BVV.pwn(21730) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nayara\Desktop\BVV\gamemodes\BVV.pwn(21730) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Re: Impostos das Casas -
CaioTJF - 02.09.2012
Vocк coloco
inFavela e nгo
InFavela
Код:
// Topo GM
new bool:InFavela[MAX_PLAYERS];
//
if(PlayerToPoint(7.0, i, 2221.3298,-1108.0605,26.2748) || PlayerToPoint(7.0, i, 2159.1794,-1004.8632,62.7888) || PlayerToPoint(7.0, i, 2326.2520,-1079.5879,50.0407) || PlayerToPoint(7.0, i, 2058.4858,-979.0306,46.2862)){ //Gametext favela ._.
new playerid;
if(InFavela[playerid] == true)
return 0;
InFavela[playerid] = true;
SendClientMessage(playerid, 0x408080FF,"Vocк entrou na favela e ganhou armas.");
GivePlayerWeapon(playerid, 28, 99999);
GivePlayerWeapon(playerid, 26, 99999);
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 9, 99999);
Re: Impostos das Casas -
Nayara._. - 02.09.2012
ok consegui, mais como eu faзo no do imposto da