[Ajuda] Como tiro esses erros?
#1

pawn Код:
C:\Documents and Settings\Comp\Desktop\BER\pawno\include\dutils.inc(286) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Comp\Desktop\BER\pawno\include\cpstream.inc(80) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Comp\Desktop\BER\pawno\include\foreach.inc(628) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Comp\Desktop\BER\pawno\include\antibot.inc(53) : warning 219: local variable "i" shadows a variable at a preceding level
pawn Код:
C:\Documents and Settings\Comp\Desktop\BER\gamemodes\BER.pwn(2315) : warning 219: local variable "i" shadows a variable at a preceding level

(2315) for(new i =0; i<= MAX_PLAYERS;i++){
pawn Код:
C:\Documents and Settings\Comp\Desktop\BER\gamemodes\BER.pwn(2372) : warning 202: number of arguments does not match definition

(2372) hospcars[1] = AddStaticVehicle(522,-338.9988,1061.5620,19.3061,0.6272,1,3,30); // moto-hosp
Reply
#2

pawn Код:
hospcars[1] = AddStaticVehicle(522,-338.9988,1061.5620,19.3061,0.6272,1,3);
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++){
Se ainda nгo der, mude o "i" para outro valor
Reply
#3

pawn Код:
hospcars[1] = AddStaticVehicle(522,-338.9988,1061.5620,19.3061,0.6272,1,3);
pawn Код:
// forma 1:
for(i =0; i<= MAX_PLAYERS;i++){


//Forma 2: ou tu muda tudo alem do loop
for(new j =0; j<= MAX_PLAYERS;j++){
Reply
#4

Quote:
Originally Posted by Jonathan_Feitosa
Посмотреть сообщение
pawn Код:
hospcars[1] = AddStaticVehicle(522,-338.9988,1061.5620,19.3061,0.6272,1,3);
pawn Код:
// forma 1:
for(i =0; i<= MAX_PLAYERS;i++){


//Forma 2: ou tu muda tudo alem do loop
for(new j =0; j<= MAX_PLAYERS;j++){
e esses erros aki como arrumo eles

pawn Код:
(8128) : warning 215: expression has no effect
(8198) : warning 215: expression has no effect
(12669) : warning 225: unreachable code
(17616) : warning 219: local variable "i" shadows a variable at a preceding level
(17739) : warning 219: local variable "i" shadows a variable at a preceding level
(21440) : warning 219: local variable "i" shadows a variable at a preceding level
(23474) : warning 202: number of arguments does not match definition
(29465) : warning 203: symbol is never used: "playerid"
(29465 -- 29472) : warning 219: local variable "anim" shadows a variable at a preceding level
(30185) : warning 215: expression has no effect
em baixo postarei as linhas

pawn Код:
(8128) for(i; i <MAX_PLAYERS; i++)

(8198) for(i; i <MAX_PLAYERS; i++)

(12669) SendClientMessage(playerid, COLOR_GREEN, "Vocк nгo estб carregado de ( Materia Prima ).");

(17616) new f[MAX_PLAYER_NAME], g[MAX_PLAYER_NAME], h[MAX_PLAYER_NAME], i[MAX_PLAYER_NAME];

(17739) new f[30], g[30], h[30], i[30];

(21440) for (new i = 0, j = strlen(string); i < j; i++) if (string[i] > '9' || string[i] < '0') return 0;

(23474) SendClientMessage(i, verdel);

(29465) stock IsPlayerInWater(playerid) {

(29465 -- 29472) stock IsPlayerInWater(playerid) {


return 0;
}

stock IsPlayerAiming(playerid) {
new anim = GetPlayerAnimationIndex(playerid);

(30185) for(i; i <= MAX_PLAYERS; i++) {
Reply
#5

pawn Код:
(8128) : warning 215: expression has no effect
(8198) : warning 215: expression has no effect
Expressгo sem efeito, nгo tem fundamento nenhum.

pawn Код:
(29465 -- 29472) : warning 219: local variable "anim" shadows a variable at a preceding level
Variavel "anim" ja estб defina, apenas mude o nome da mesma.

pawn Код:
(23474) : warning 202: number of arguments does not match definition
nъmero de argumentos nгo corresponde definiзгo.

pawn Код:
(17616) : warning 219: local variable "i" shadows a variable at a preceding level
(17739) : warning 219: local variable "i" shadows a variable at a preceding level
(21440) : warning 219: local variable "i" shadows a variable at a preceding level
As variбveis jб estгo definidas, apenas mude o nome da mesma.

pawn Код:
(29465) : warning 203: symbol is never used: "playerid"
Nгo estб sendo usado " playerid ", retire-o.
Reply
#6

Velho, tu criou uma Variavel com o nome de 'i' Global, e essa Variavel global estб afetando as outras locais, entгo exclua a Global ou renomeie ela..

warning 202: Vocк nгo completou todos os Parametros que a funзгo pede..
Reply
#7

Quote:
Originally Posted by Nill.Oliveira
Посмотреть сообщение
pawn Код:
(8128) : warning 215: expression has no effect
(8198) : warning 215: expression has no effect
Expressгo sem efeito, nгo tem fundamento nenhum.

pawn Код:
(29465 -- 29472) : warning 219: local variable "anim" shadows a variable at a preceding level
Variavel "anim" ja estб defina, apenas mude o nome da mesma.

pawn Код:
(23474) : warning 202: number of arguments does not match definition
nъmero de argumentos nгo corresponde definiзгo.

pawn Код:
(17616) : warning 219: local variable "i" shadows a variable at a preceding level
(17739) : warning 219: local variable "i" shadows a variable at a preceding level
(21440) : warning 219: local variable "i" shadows a variable at a preceding level
As variбveis jб estгo definidas, apenas mude o nome da mesma.

pawn Код:
(29465) : warning 203: symbol is never used: "playerid"
Nгo estб sendo usado " playerid ", retire-o.
eu removi e fui tentando, e sу da erro
Reply
#8

й como o Paulor falou, vocк criou uma variavel " i " globalmente, e ta dando conflitos em outros locais, por que ja teve existir a variavel " i " . renomeia ela tipo: tira o " i " e bota outra e compila.
Reply
#9

Que mal lhe pergunte, cade aquela promessa de
Quote:

Essa й a ultima coisa que eu peзo



SAFADENHO!
Reply
#10

eu falei se eu conseguisse eu parava, mas nao consegui 8(
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)