SA-MP Forums Archive
Stock doesnt work? - 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: Stock doesnt work? (/showthread.php?tid=344483)



Stock doesnt work? - CoDeZ - 21.05.2012

Hello...
This is line that i get error at
pawn Код:
MySQL_Login(playerid)
then i used this
pawn Код:
stock MySQL_Login(playerid)
{
 // my code goes here
}
And i get this error.

Код:
 error 017: undefined symbol "MySQL_Login"
Any help?


Re: Stock doesnt work? - Dan. - 21.05.2012

pawn Код:
MySQL_Login(playerid);
Maybe?


Re: Stock doesnt work? - CoDeZ - 21.05.2012

Still the same.
when i type stock , it doesnt appear like the blue light color , but it appears black


Re: Stock doesnt work? - Vince - 21.05.2012

The syntax highlighting on the forum is not a 100% correct. It is supposed to be black. Nevertheless, stock is just a modifier that hides the function/variable from the compiler if it is not used. It should not in any way interfere with the inner workings of the function.

The problem is most likely in the wrong usage of pre-processor directives, notoriously #if defined FILTERSCRIPT.


Re: Stock doesnt work? - CoDeZ - 21.05.2012

Ehm.. thats a home made script using my pc
Also i didnt use any filterscripts , and i tried opening the grandlrc script that comes with the server package and tried to use stock but still the same problem..


Re: Stock doesnt work? - [FMJ]PowerSurge - 21.05.2012

Make sure all your braces are matched. Also, make sure that your stock definition isn't inside another function.

If you still can't get it to work, PM me on the FMJ forum or hit me up ingame.