-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
andreistalker
Am gasit pe internet un tutorial de vehicle System pe mysql si era pe o versiune veche, cum as putea sa o trec pe r39?
public LoadCar()
{
new vehs = 0;
mysql_query(handle,"SELECT MAX(id) FROM cars");
mysql_store_result();
masini = mysql_fetch_int();
for(new idx = 1; idx <= masini; idx++)
{
new query[256];
mysql_format(handle, query, sizeof(query), "SELECT * FROM cars WHERE ID = %d",idx);
mysql_query(handle, query);
mysql_store_result();
if(cache_num_rows())
{
CarInfo[idx][cID] = -2;
}
else
{
if(mysql_fetch_row_format(query, "|"))
{
sscanf(query, "p<|>e<iiffffiis[25]is[14]iiiiiiiiiiiiiiiiiiiii>",CarInfo[idx]);
vehs++;
}
}
}
mysql_free_result();
printf("Cars: %d", vehs);
return 1;
}
Multumesc celor care o sa ma ajute
Edited by andreistalker1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now