Stock doesnt work?
#1

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?
Reply
#2

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

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)