20.09.2016, 16:15
ay,
log:
for some reason, this doesn't happen to call OnPlayerRegister and doesn't insert any data into the database.
(there is an existing `users` table and the MySQL connection is fine)
I keep getting random errors on mysql logs such as:
line 2258:
ideas?
Код:
for(new i = 0; i < 16; i++) pInfo[playerid][Salt][i] = random(94) + 33; SHA256_PassHash(inputtext, pInfo[playerid][Salt], pInfo[playerid][Password], 65); new query[221]; mysql_format(SQL, query, sizeof(query), "INSERT INTO `users` (`username`, `password`, `salt`) VALUES ('%e', '%s', '%e')", pInfo[playerid][Name], pInfo[playerid][Password], pInfo[playerid][Salt]); mysql_tquery(SQL, query, "OnPlayerRegister", "i", playerid);
Код:
INSERT INTO `users` (`username`, `password`, `salt`) VALUES ('User', 'E8EFFFFCCCEB28E291B807EC16C1F9C7BDFED61475D8FC854EBCAE6A9D2C19D1', 'zuViawB<w%LRBkj1')
(there is an existing `users` table and the MySQL connection is fine)
I keep getting random errors on mysql logs such as:
Код:
[plugins/mysql] Ђk‚ (C:\Games\GTA San Andreas\server\gamemodes\ss.pwn:2258)
Код:
mysql_tquery(SQL, query, "OnPlayerRegister", "i", playerid);