-
Similar Content
-
- 2 answers
- 221 views
-
- 37 replies
- 1,893 views
-
- 2 answers
- 210 views
-
- 10 replies
- 4,834 views
-
- 6 answers
- 866 views
-
-
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 andreistalkerLink to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.