[Plugin] MySql !!! Can't call callback
#2

mysql_tquery(sqlconn,"SELECT * FROM prices","CarPriceLoadInit");

forward CarPriceLoadInit();
public CarPriceLoadInit()
{
if(!cache_num_rows())return print("No car prices to load!");
for(new i=0; i < cache_num_rows(); i++){
VehInfo[i][Model]=cache_get_field_content_int(i,"model");
VehInfo[i][Type]=cache_get_field_content_int(i,"type");
cache_get_field_content(i,"name",VehInfo[i][Name],sqlconn,64);
VehInfo[i][Price][0]=cache_get_field_content_int(i,"price");
}
printf("Loaded %d car prices.",cache_num_rows());
return 1;
}
Reply


Messages In This Thread
MySql !!! Can't call callback - by FloxX - 11.09.2014, 14:13
Re: MySql !!! Can't call callback - by CodeStyle175 - 11.09.2014, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)