Mysql mysql_format error or something help me pls
#1

pawn Код:
.pwn(1182) : warning 213: tag mismatch
.pwn(1182) : warning 213: tag mismatch
.pwn(1182) : warning 213: tag mismatch
.pwn(1182) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Warnings.
this is the line


this is the line
pawn Код:
new query[128];
        mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `Adminlevel`=%d, `DonorRank`=%d, `Money`=%d, `Scores`=%d, `Kills`=%d, `Deaths`=%d, `Ranks`=%d WHERE `IDs`=%d",\
        pInfo[playerid][Adminlevel], pInfo[playerid][DonorRank], pInfo[playerid][Money], pInfo[Scores], pInfo[Kills], pInfo[Deaths], pInfo[Ranks], pInfo[playerid][IDs]); //this line 1181
        mysql_tquery(mysql, query, "", "");
please help me idk what imma doing bad :v :C
please, :c
Reply
#2

pInfo[money], pInfo[Ranks] and other variables don't need "[playerid]" ?
For example pInfo[playerid][money] ?
Reply
#3

pawn Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `Adminlevel`=%d, `DonorRank`=%d, `Money`=%d, `Scores`=%d, `Kills`=%d, `Deaths`=%d, `Ranks`=%d WHERE `IDs`=%d",
        pInfo[playerid][Adminlevel], pInfo[playerid][DonorRank], pInfo[playerid][Money], pInfo[playerid][Scores], pInfo[playerid][Kills], pInfo[playerid][Deaths], pInfo[playerid][Ranks], pInfo[playerid][IDs]); //this line 1181
As he said ^, you forgot to add [playerid] to them
Reply
#4

Thank you ! i was blind !
thank you very much !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)