-
Similar Content
-
- 2 replies
- 212 views
-
Problema turf
By Soryn.,
- 3 answers
- 262 views
-
- 1 reply
- 179 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 158 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.