Mysql data load???
#1

I have a mysql table that stores some data from the player, but somehow sometimes it does not contain any data from the player ..

I am using mysql R39-6
For this kind of script loading data like this

Код:
New querys [128];
Mysql_format (mysqlcon, querys, sizeof (querys), "SELECT * FROM cars WHERE ownerid = '% d'", pInfo [playerid] [pMysqlID]);
Mysql_tquery (mysqlcon, querys, "accountOnLoadVehicle", "d", extraid);
And for response

Код:
Forward accountOnLoadVehicle (extraid);
Public accountOnLoadVehicle (extraid) {
New rows, fields;
Cache_get_data (rows, fields);
If (rows) {
For (new i; i <rows; i ++) {
New id = cache_get_field_content_int (i, "slot", mysqlcon);
New ids = cache_get_field_content_int (i, "ps", mysqlcon);

Bla ... bla..bla ....
**}
}
Return 1;
}
The table is the loading system with the result data loop using the slot of the vehicle for the index

Is there any error in loading the data ??

NB: That's only 1 table, in the script there are 5 similar tables that are loaded once

Thanks in advance... sorry for my bad english
Reply


Messages In This Thread
Mysql data load??? - by qmnty - 07.06.2017, 16:37
Re: Mysql data load??? - by Banditul18 - 07.06.2017, 16:48
Re: Mysql data load??? - by saffierr - 07.06.2017, 16:53
Re: Mysql data load??? - by qmnty - 08.06.2017, 01:11

Forum Jump:


Users browsing this thread: 3 Guest(s)