[Ajuda] Erro na GM - 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] Erro na GM (
/showthread.php?tid=628392)
Erro na GM -
DaRoma - 10.02.2017
esta dando esse erro na gm e eu nao estou conseguindo arrumar
PHP код:
Linha: 32528 error 012: invalid function call, not a valid address
PHP код:
Linha: 32528 new dir:dir = dir_open("scriptfiles/Jogadores/");
Re: Erro na GM -
johntrybescripter - 10.02.2017
vc ja tentou sem
pawn Код:
("scriptfiles/Jogadores/");
sem o "scriptfiles" ?
Re: Erro na GM -
DaRoma - 10.02.2017
Testei aqui sem o "Scriptfiles", deu o mesmo erro
Re: Erro na GM -
MultiKill - 10.02.2017
Quote:
Originally Posted by ******
That error means that you have a local variable with the same name as a function, and are trying to call that function, but because of shadowing you are actually calling a variable, which you can't do.
|
PHP код:
Func(){
}
main(){
new Func;
Func();
}
No cуdigo acima vai dar esse erro, pois existe um funзгo com o nome Func e foi criada uma variбvel local com o nome Func.
E houve a tentativa de chamar a funзгo, se nгo tivesse tentando chamar a funзгo iria ter apenas um aviso alertando que existe uma variбvel global com o mesmo nome da local.
Da prуxima vez utilize o search ou o ******, pois existem milhares de tуpicos mostrando o que significa este erro.