[Ajuda] Warnings - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Warnings (
/showthread.php?tid=577163)
Warnings -
CZ - 09.06.2015
alguem me ajuda nessas warnings?
pawn Код:
C:\Users\Carlos\Desktop\MEU GM\pawno\include\dof2.inc(1283) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Carlos\Desktop\MEU GM\pawno\include\dof2.inc(1314) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Carlos\Desktop\MEU GM\pawno\include\dof2.inc(1337) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 11416 bytes
Code size: 569240 bytes
Data size: 1814644 bytes
Stack/heap size: 65536 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2460836 bytes
3 Warnings.
Re: Warnings -
JuniorTheDM - 09.06.2015
passa linhas
Re: Warnings -
ipsLuan - 09.06.2015
Basta excluir a variбvel local, pois ela jб existe ela globalmente.
Re: Warnings -
CZ - 09.06.2015
pawn Код:
}
}
else{
SetPlayerColor(playerid, Cores[random(sizeof(Cores))]);
}
}else{
SetPlayerColor(playerid, Cores[random(sizeof(Cores))]);
}
}
return true;
}
Re: Warnings -
ipsLuan - 09.06.2015
No comeзo do GameMode ou do FilterScript tem uma variбvel global denominada de string. Basta excluir!
Exemplo:
PHP код:
new string[128];
function OnPlayerConnect(playerid) {
new string[128];
return 1;
}
Vocк deverб excluir a da callback.