03.11.2013, 11:24
Copy And Remplace It With This:
Код:
// Callbacks forward OnQueryFinish(resultid, extraid, handleid); public OnQueryFinish(resultid, extraid, handleid) { new rows, fields; if(resultid != SENDDATA_THREAD) { if(extraid != INVALID_PLAYER_ID) { if(g_arrQueryHandle{extraid} != -1 && g_arrQueryHandle{extraid} != handleid) return 0; } cache_get_data(rows, fields, MainPipeline); } switch(resultid) { case LOADMOTDDATA_THREAD: { for(new i;i < rows;i++) { new szResult[32]; cache_get_field_content(i, "gMOTD", GlobalMOTD, MainPipeline); cache_get_field_content(i, "aMOTD", AdminMOTD, MainPipeline); cache_get_field_content(i, "vMOTD", VIPMOTD, MainPipeline); cache_get_field_content(i, "cMOTD", CAMOTD, MainPipeline); cache_get_field_content(i, "pMOTD", pMOTD, MainPipeline); cache_get_field_content(i, "ShopTechPay", szResult, MainPipeline); ShopTechPay = floatstr(szResult); break; } }