[Ajuda] Erro na GM
#4

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.
Reply


Messages In This Thread
Erro na GM - by DaRoma - 10.02.2017, 00:04
Re: Erro na GM - by johntrybescripter - 10.02.2017, 00:08
Re: Erro na GM - by DaRoma - 10.02.2017, 00:13
Re: Erro na GM - by MultiKill - 10.02.2017, 00:28

Forum Jump:


Users browsing this thread: 2 Guest(s)