undefined symbol (stock) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefined symbol (stock) (
/showthread.php?tid=560774)
undefined symbol (stock) -
Supermaxultraswag - 30.01.2015
Код HTML:
stock www()
{
}
public OnGameModeInit()
{
www(); // 151 line
return 1;
}
Код HTML:
undefined symbol "www" // 151 line
dahell
Re: undefined symbol (stock) -
Supermaxultraswag - 30.01.2015
Quote:
Originally Posted by ******
1) Are you sure that is all your code?
2) What is the line number of the error?
3) If you are calling the function, why is it "stock"?
|
1) No, but im sure that problem isn't with code in stock.
2) I thought that was obvious... Nevermind, topic edited.
3) What should I use instead of stock?
Re: undefined symbol (stock) -
Supermaxultraswag - 30.01.2015
Quote:
Originally Posted by ******
1) The problem is that the tiny snippet you posted is fine, so the error is obviously not there but caused by some other code you haven't posted. If you don't know where the problem IS, you can't assume you know where the problem ISN'T.
2) See 1.
3) Nothing.
|
1) You were right. Problem solved, I just forget to add "}" in one place. Stupid me.
2) Good.
3) Like dis?
www()
{
}