SA-MP Forums Archive
Querry Issue - 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: Querry Issue (/showthread.php?tid=584973)



Querry Issue - TwinkiDaBoss - 09.08.2015

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


Re: Querry Issue - SickAttack - 09.08.2015

Increase the amount of cells of the variable "query".


Re: Querry Issue - Vince - 09.08.2015

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?


Re: Querry Issue - TwinkiDaBoss - 10.08.2015

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