MySQL errors
#1

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"
Reply
#2

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.. )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)