SA-MP Forums Archive
NF-RP.pwn(318) : error 021: symbol already defined: "escapedValue" - 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: NF-RP.pwn(318) : error 021: symbol already defined: "escapedValue" (/showthread.php?tid=310644)



NF-RP.pwn(318) : error 021: symbol already defined: "escapedValue" - jaskiller - 13.01.2012

hi I have this error :

NF-RP.pwn(31 : error 021: symbol already defined: "escapedValue" Why??

Code :

PHP код:

case DIALOG_REGISTER_FINAL :
        {
            new 
pVar[2][24], email[129], escapedValue[3][24], escapedEmail[129], query[256]; // pVar[0] = pPass, pVar[1] = pOrigine
            
GetPVarString(playerid"REGISTER_PASS"pVar[0], 24 );
            
GetPVarString(playerid"REGISTER_ORIGINE"pVar[1], 24 );
            
GetPVarString(playerid"REGISTER_EMAIL"email129 );
            
mysql_real_escape_string(pVar[0], escapedValue[0]);
            
mysql_real_escape_string(pVar[1], escapedValue[1]);
            
mysql_real_escape_string(PlayerName(playerid), escapedValue[2]);
            
mysql_real_escape_string(emailescapedEmail);
            
            
format(querysizeof(query), "INSERT INTO `playersdata` (`pName`, `pPassword`, `pSexe`, `pAge`, `pOrigine`, `pEmail`) VALUES ('%s', '%s', '%i', '%i', '%s', '%s')",
                                         
escapedValue[2], escapedValue[0], GetPVarInt(playerid"REGISTER_SEXE"), GetPVarInt(playerid"REGISTER_AGE"), escapedValue[1], escapedEmail);
            
mysql_query(query);
        }
        
        case 
DIALOG_LOGIN :
        {
            if(!
response) return Kick(playerid);
            new 
escapedValue[2][24], query[256]; // [0] = pName, [1] = pPassword
            
            
mysql_real_escape_string(PlayerName(playerid), escapedValue[0]);
            
mysql_real_escape_string(inputtextescapedValue[1]);
            
            
format(querysizeof(query), "SELECT * FROM `playersdata` WHERE `pName` = '%s' AND `pPassword` = '%s'",escapedValue[0], escapedValue[1]);
            
mysql_query(queryTHREAD_LOAD_PLAYER_DATAplayerid);
        } 



Re: NF-RP.pwn(318) : error 021: symbol already defined: "escapedValue" - ScriptJorkis - 13.01.2012

escapedValue is already use somewhere in your script. change 'escapedValue' to other unused name


Re : NF-RP.pwn(318) : error 021: symbol already defined: "escapedValue" - jaskiller - 13.01.2012

No i never define escapedValue before.


Re: Re : NF-RP.pwn(318) : error 021: symbol already defined: "escapedValue" - Norck - 13.01.2012

Quote:
Originally Posted by jaskiller
Посмотреть сообщение
No i never define escapedValue before.
Probably it's defined in some include that you use.