21.12.2014, 14:36
yea, that's the problem, the tutorial you took that from had a mistake , look here:
and look here:
Syntax mistake, so it will load an empty string, and will return a mysql error in the mysql_log.txt.
Change it to:
instead of "PASS".
pawn Code:
cache_get_field_content(0, "PASS", pData[playerid][Password], mysql, 129);
pawn Code:
mysql_format(mysql, query, sizeof(query), "INSERT INTO `players` (`Username`, `Password`, `IP`, `Money`, `Admin`, `pX`, `pY`, `pZ`) VALUES ('%e', '%s', '%s', 0, 0, 0.0, 0.0, 0.0)", GPName(playerid), pData[playerid][Password], IP[playerid]);
pawn Code:
`Password and PASS
Change it to:
pawn Code:
cache_get_field_content(0, "Password", pData[playerid][Password], mysql, 129);