09.08.2016, 09:18
Здравствуйте,есть проблема - не загружается казино,мне просто надо чтобы сохранялись имена в базе данных ,думаю в коде нет ошибок хотя....хз,недавно начал изучать...
PHP код:
enum caInfo
{
caManager[24],
caManager2[24],
caManager3[24],
caKrupie[24],
caKrupie2[24],
caKrupie3[24],
caKrupie4[24],
caKrupie5[24],
caKrupie6[24],
caKrupie7[24],
caKrupie8[24],
caKrupie9[24],
caKrupie10[24]
}
new CasinoInfo[1][caInfo];
publics: CallBackCasino()
{
new rows, fields;
cache_get_data(rows, fields);
if(!rows) return printf("Не загружено");
{
CasinoInfo[0][caKrupie] = cache_get_field_content_int(0,"Krupie",dbHandle);
CasinoInfo[0][caKrupie2] = cache_get_field_content_int(0,"Krupie2",dbHandle);
CasinoInfo[0][caKrupie3] = cache_get_field_content_int(0,"Krupie3",dbHandle);
CasinoInfo[0][caKrupie4] = cache_get_field_content_int(0,"Krupie4",dbHandle);
CasinoInfo[0][caKrupie5] = cache_get_field_content_int(0,"Krupie5",dbHandle);
CasinoInfo[0][caKrupie6] = cache_get_field_content_int(0,"Krupie6",dbHandle);
CasinoInfo[0][caKrupie7] = cache_get_field_content_int(0,"Krupie7",dbHandle);
CasinoInfo[0][caKrupie8] = cache_get_field_content_int(0,"Krupie8",dbHandle);
CasinoInfo[0][caKrupie9] = cache_get_field_content_int(0,"Krupie9",dbHandle);
CasinoInfo[0][caKrupie10] = cache_get_field_content_int(0,"Krupie10",dbHandle);
CasinoInfo[0][caManager] = cache_get_field_content_int(0,"Manager",dbHandle);
CasinoInfo[0][caManager2] = cache_get_field_content_int(0,"Manager2",dbHandle);
CasinoInfo[0][caManager3] = cache_get_field_content_int(0,"Manager3",dbHandle);
}
return printf("Загружно");
}
gamemodeinit
mysql_function_query(dbHandle,"SELECT * FROM `casino`", true, "CallBackCasino", "");