03.09.2012, 00:55
Which is correct out of these?
mysql_store_result(); is needed?
pawn Код:
stock MySQLLoadPlayer(playerid)
{
new query[634];
format(query, sizeof(query), "SELECT money, Bank, weed, Condoms, inalcatraz, bowner, bowned, vowned, vowner, vowned2, vowner2, vowned3, vowner3, vowned4, vowner4, vowned5, vowner5 FROM data WHERE user = '%s'", pname);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][LoggedIn] = 1;
}
pawn Код:
stock MySQLLoadPlayer(playerid)
{
new query[634];
format(query, sizeof(query), "SELECT money, Bank, weed, Condoms, inalcatraz, bowner, bowned, vowned, vowner, vowned2, vowner2, vowned3, vowner3, vowned4, vowner4, vowned5, vowner5 FROM data WHERE user = '%s'", pname);
mysql_query(query);
PlayerInfo[playerid][LoggedIn] = 1;
}