Simple mysql error
#1

Quote:

gm.pwn(24) : error 035: argument type mismatch (argument 2)
gm.pwn(31) : error 035: argument type mismatch (argument 1)
gm.pwn(28) : warning 203: symbol is never used: "pass"
gm.pwn(28) : warning 203: symbol is never used: "db"
gm.pwn(28) : warning 203: symbol is never used: "user"
gm.pwn(28) : warning 203: symbol is never used: "host"
gm.pwn(28) : warning 203: symbol is never used: "text"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

pawn Код:
public OnGameModeInit()
{
    DisableInteriorEnterExits();
    ManualVehicleEngineAndLights();
   
    connect_mysql(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);
    return 1;
}

// LINE 28 stock connect_mysql(text[], host, user, db, pass)
{
    mysql_log(LOG_ERROR | LOG_WARNING | LOG_DEBUG);
    // LINE 31 Connectline = mysql_connect(host, user, db, pass);
   
    if(mysql_errno(Connectline) != 0)
    {
        print("MYSQL ERROR: The MySQL Connection could not be established!");
    }
    return 1;
}
Reply
#2

The least you could do is pinpoint which line is for which error or warning
Reply
#3

Changed
Reply
#4

Look here >>>> https://sampwiki.blast.hk/wiki/Errors_List
Reply
#5

Or you could help me and do it?
Reply
#6

gm.pwn(2 : warning 203: symbol is never used: "pass"
gm.pwn(2 : warning 203: symbol is never used: "db"
gm.pwn(2 : warning 203: symbol is never used: "user"
gm.pwn(2 : warning 203: symbol is never used: "host"
gm.pwn(2 : warning 203: symbol is never used: "text"

You have created a variable or a function, but you're not using it. Delete the variable or function if you don't intend to use it. delete those variables cause they aren't being used

gm.pwn(31) : error 035: argument type mismatch (argument 1)
i'm not to great with mysql but i know the error means you're missing something from the format

so yeah read up https://sampwiki.blast.hk/wiki/Errors_List
Reply
#7

Fixed it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)