MySQL errors - 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: MySQL errors (
/showthread.php?tid=389836)
MySQL errors -
cotyzor - 03.11.2012
pawn Code:
mysql_query("SELECT * FROM players");
mysql_store_result();
new accounts = mysql_num_rows();
mysql_free_result();
new baralog;
format(baralog, sizeof(baralog),"Total accounts: %d",accounts);
logintd0 = TextDrawCreate(303.000000,437.000000,baralog);
TextDrawBackgroundColor(logintd0,0x000000ff);
TextDrawFont(logintd0,1);
TextDrawLetterSize(logintd0,0.399999,1.000000);
TextDrawColor(logintd0,0xffffffff);
TextDrawAlignment(logintd0,2);
TextDrawSetOutline(logintd0,1);
TextDrawSetProportional(logintd0,1);
TextDrawSetShadow(logintd0,1);
Code:
bzone.pwn(6) : error 035: argument type mismatch (argument 1)
bzone.pwn(6) : error 035: argument type mismatch (argument 1)
bzone.pwn(7) : error 035: argument type mismatch (argument 3)
bzone.pwn(5) : warning 203: symbol is never used: "baralog"
Re: MySQL errors -
InfiniTy. - 03.11.2012
pawn Code:
mysql_query("SELECT * FROM players");
mysql_store_result();
new accounts = mysql_num_rows();
mysql_free_result();
new baralog[264];
format(baralog, sizeof(baralog),"",accounts);
format(baralog, sizeof(baralog),"Total accounts: %d",accounts);
logintd0 = TextDrawCreate(303.000000,437.000000,baralog);
TextDrawBackgroundColor(logintd0,0x000000ff);
TextDrawFont(logintd0,1);
TextDrawLetterSize(logintd0,0.399999,1.000000);
TextDrawColor(logintd0,0xffffffff);
TextDrawAlignment(logintd0,2);
TextDrawSetOutline(logintd0,1);
TextDrawSetProportional(logintd0,1);
TextDrawSetShadow(logintd0,1);
The rest are warnings.. tag mismatch but you'll figure it out on some tutorials.. or on the wiki
They're not a big deal
(Nu-i mare chestie.. vezi si tu.. )