[Ajuda] Aviso - 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] Aviso (
/showthread.php?tid=576180)
Aviso -
Matei123 - 01.06.2015
Ae Galera me ajudem na minha gm fica dando esses erros
ERROS
PHP код:
C:\Users\carlos\Desktop\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(29132) : warning 219: local variable "anim" shadows a variable at a preceding level
C:\Users\carlos\Desktop\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(29138) : warning 219: local variable "anim" shadows a variable at a preceding level
Linhas
PHP код:
stock IsPlayerInWater(playerid) {
new anim = GetPlayerAnimationIndex(playerid);
if (((anim >= 1538) && (anim <= 1542)) || (anim == 1544) || (anim == 1250) || (anim == 1062)) return 1;
return 0;
}
PHP код:
stock IsPlayerAiming(playerid) {
new anim = GetPlayerAnimationIndex(playerid);
if (((anim >= 1160) && (anim <= 1163)) || (anim == 1167) || (anim == 1365) ||
(anim == 1643) || (anim == 1453) || (anim == 220)) return 1;
return 0;
}
OBS: EU JA APAGUEI UMAS DAS LINHA E DEU MAIS DE 15 ERROS
Re: Aviso -
ReyMysterio - 01.06.2015
Mude a segunda stock para:
PHP код:
stock IsPlayerAiming(playerid) {
new anime = GetPlayerAnimationIndex(playerid);
if (((anime >= 1160) && (anime <= 1163)) || (anime == 1167) || (anime == 1365) ||
(anime == 1643) || (anime == 1453) || (anime == 220)) return 1;
return 0;
}
Re: Aviso -
Matei123 - 01.06.2015
PRONTO CONSEGUI VC AJUDA MUITO VLW AI CARA