SA-MP Forums Archive
Scripting Error - 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: Scripting Error (/showthread.php?tid=358172)



Scripting Error - taran - 09.07.2012

When i tryna' compile my Script it's give me the error..!


It's give me these 4 Error Help me..!
warning 217: loose indentation
warning 217: loose indentation
warning 203: symbol is never used: "connectionHandle"
warning 203: symbol is never used: "unEscapedString"


Re: Scripting Error - RedJohn - 10.07.2012

pawn Код:
warning 217: loose indentation
warning 217: loose indentation
For those 2 warning you have somewhere like this:

pawn Код:
Blalalallalalalalall
{
    blalbalalalalalala
blblblbllbbllals
        return 1;
}
And it's should be like this

pawn Код:
Blalalallalalalalall
{
    blalbalalalalalala
    blblblbllbbllals
    return 1;
}
And for those:

pawn Код:
warning 203: symbol is never used: "connectionHandle"
warning 203: symbol is never used: "unEscapedString"
Try

pawn Код:
#pragma unused connectionHandle
#pragma unused unEscapedString
bellow defines!

If you still can't fix it! PM your script and I will fix it for you!


Re: Scripting Error - manpreet_singh - 01.08.2012

i have same look like that problum any one help please..


Re: Scripting Error - Glint - 01.08.2012

They are warnings nothing to worry about as for the loose indentation warning you can add #pragma tabsize 0 under your includes to hide those warnings and the other warnings that say the variable is unused you can just ignore them or do what RedJohn said above or simply you can delete them.


Re: Scripting Error - manpreet_singh - 01.08.2012

hey bro can u tell where inclue in this is a
// g_mysql_ReturnEscaped(string unEscapedString)
// Description: Takes a unescaped string and returns an escaped one.
stock g_mysql_ReturnEscaped(unEscapedString[], connectionHandle) <<<<<< problum in this line
{
new EscapedString[256];
return EscapedString;
}


Re: Scripting Error - Glint - 01.08.2012

Quote:
Originally Posted by manpreet_singh
Посмотреть сообщение
hey bro can u tell where inclue in this is a
// g_mysql_ReturnEscaped(string unEscapedString)
// Description: Takes a unescaped string and returns an escaped one.
stock g_mysql_ReturnEscaped(unEscapedString[], connectionHandle) <<<<<< problum in this line
{
new EscapedString[256];
return EscapedString;
}
that is a stock not an include an include is something like this
pawn Код:
#include <a_samp>



Re: Scripting Error - manpreet_singh - 01.08.2012

#include <a_samp>

#undef MAX_PLAYERS
#define MAX_PLAYERS (50)

#include <a_mysql>
#include <streamer>
#include <sscanf2>
#include <a_zones>
#include <foreach>
#include <yom_buttons>
#include <djson>
#include <YSI\y_timers>
#include <YSI\y_utils>
#include <ZCMD>

i add Already ..


Re: Scripting Error - manpreet_singh - 04.08.2012

I solve this error warning 203:


Re: Scripting Error - Lorenzo! - 04.08.2012

Check if you didn't forgot to post any lost ''{'' or ''}''


Re: Scripting Error - manpreet_singh - 04.08.2012

Quote:
Originally Posted by Lorenzo!
Посмотреть сообщение
Check if you didn't forgot to post any lost ''{'' or ''}''
its not lost this its lost to much or full line