-
Similar Content
-
- 3 replies
- 206 views
-
- 1 reply
- 168 views
-
Gamemode Hardgaming Versiunea a 4-a (no-mysql) 1 2
By n0dEv,
- luatil cai kald.
- hardgaming v4
- (and 90 more)
- 42 replies
- 8,518 views
-
- 1 answer
- 493 views
-
- 6 replies
- 519 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 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