How to fix this? - 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: How to fix this? (
/showthread.php?tid=357775)
How to fix this? -
sampmark05 - 08.07.2012
How to fix this error?
(3720) : warning 203: symbol is never used: "connectionHandle"
(3720) : warning 203: symbol is never used: "unEscapedString"
2 Warnings.
Код:
stock g_mysql_ReturnEscaped(unEscapedString[], connectionHandle)
{
new EscapedString[256];
return EscapedString;
}
Re: How to fix this? -
ReneG - 08.07.2012
By stop trying to compile NGRP's SQL code.
pawn Код:
stock g_mysql_ReturnEscaped(unEscapedString[])
{
new EscapedString[256];
mysql_real_escape_string(unEscapedString, EscapedString);
return EscapedString;
}
Re: How to fix this? -
Ironboy - 08.07.2012
EDIT: REMOVED
Re: How to fix this? -
anito - 08.07.2012
#pragma unused connectionHandle
#pragma unused unEscapedString
Try this!
Re: How to fix this? -
sampmark05 - 08.07.2012
Thnx dude working
Re: How to fix this? -
sampmark05 - 08.07.2012
I fixed it
Код:
stock g_mysql_ReturnEscaped(unEscapedString[], connectionHandle)
{
new EscapedString[256];
mysql_real_escape_string(unEscapedString, EscapedString, connectionHandle);
return EscapedString;
}
Re: How to fix this? -
sampmark05 - 08.07.2012
Quote:
Originally Posted by VincentDunn
By stop trying to compile NGRP's SQL code.
pawn Код:
stock g_mysql_ReturnEscaped(unEscapedString[]) { new EscapedString[256]; mysql_real_escape_string(unEscapedString, EscapedString); return EscapedString; }
|
Код:
Thanks for code Vincentdunn :P