warning 203: symbol is never used
#1

As title says i get this error when compiling:
warning 203: symbol is never used: "yoursql_get_db"

And when i try to stock yoursql_get_db this error pops up:
C:\Users\User\Desktop\BD\pawno\include\YourSQL.inc (115) : error 021: symbol already defined: "yoursql_get_db"
C:\Users\User\Desktop\BD\pawno\include\YourSQL.inc (117) : error 010: invalid function or declaration
C:\Users\User\Desktop\BD\pawno\include\YourSQL.inc (120) : error 010: invalid function or declaration
C:\Users\User\Desktop\BD\pawno\include\YourSQL.inc (122) : error 010: invalid function or declaration
C:\Users\User\Desktop\BD\pawno\include\YourSQL.inc (124) : error 010: invalid function or declaration
C:\Users\User\Desktop\BD\pawno\include\YourSQL.inc (129) : error 010: invalid function or declaration
C:\Users\User\Desktop\BD\pawno\include\YourSQL.inc (134) : error 010: invalid function or declaration
C:\Users\User\Desktop\BD\pawno\include\YourSQL.inc (136) : error 010: invalid function or declaration

And here are those lines

Код:
114    //Load Screen
115    Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
116   TextDrawBackgroundColor(Textdraw0, 255);
117    TextDrawFont(Textdraw0, 4);
118   TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
119    TextDrawColor(Textdraw0, -1);
120   TextDrawSetOutline(Textdraw0, 0);
121    TextDrawSetProportional(Textdraw0, 1);
122    TextDrawSetShadow(Textdraw0, 1);
123    TextDrawUseBox(Textdraw0, 1);
124    TextDrawBoxColor(Textdraw0, 255);
125    TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
126	return 1;
127    }
128    public OnGameModeExit()
129    {
130	return 1;
131    }
132
133    public OnPlayerRequestClass(playerid, classid)
134    {
135    TextDrawHideForPlayer(playerid, Textdraw0);
136    // With this you save the chosen class number into pClass[playerid]
Reply
#2

its problem vith include! not with gamemode! or your version of samp doesnt support this include YourSQL.inc
Reply
#3

I have latest version of SA:MP, could it be the inc that is not good?
Reply
#4

maybe
Reply
#5

Well, check if you included yoursql include correctly

see if there is something like this in top of your script

Код:
#include <yoursql>
If there isn't then try to download the file from Gammix's topic and put the include in your includes folder

Now you will be able to use


Код:
#include <yoursql>
Textdraws are ok btw
Reply
#6

yoursql_get_db You already have this in includes So you have to delete one.
Reply
#7

Maybe you have 2 includes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)