01.06.2016, 20:36
Hello, after adding this to the script, the server immediately shuts down.
Table structure:
PHP код:
forward LoadBays();
public LoadBays()
{
new query[128], data[128];
format(query, sizeof query, "SELECT * FROM `bays`");
mysql_query(query);
mysql_store_result();
while(mysql_fetch_row(data, ","))
{
sscanf(data, "p<,>ds[32]fff",
BayCache[bUID],
BayCache[bName],
BayCache[bPosX],
BayCache[bPosY],
BayCache[bPosZ]
);
printf("%s", BayCache[bName]);
}
return 1;
}