Querry Issue
#1

Alright so the problem is simple, the SQL tquerry isnt being properly printed out


Log
pawn Код:
[12:31:57] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO `players` (`Username`, `Password`, `IP`, `Admin`, `V", callback: "OnAccountRegister", format: "i"
format & querry
pawn Код:
mysql_format(mysql, query, sizeof(query), "INSERT INTO `players` (`Username`, `Password`, `IP`, `Admin`, `VIP`, `Reputation`) VALUES ('%e', '%s', '%s', 0, 0, 0)", Name[playerid], pInfo[playerid][Password], IP[playerid]);
            mysql_tquery(mysql, query, "OnAccountRegister", "i", playerid);

OnAccountRegister
pawn Код:
public OnAccountRegister(playerid)
{
    pInfo[playerid][ID] = cache_insert_id();
return 1;
}

As you see its starting to print out the next line that is "vip" but it never ends it. Just prints out V
Reply
#2

Increase the amount of cells of the variable "query".
Reply
#3

That is the default behavior of the logging. It cuts off after 64 characters. I believe there is an option to enable full logging, but if everything works then what is the problem?
Reply
#4

It tends to sometimes have odd behaviour such as calling another SQL ID, but thanks for the response
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)