SkyFrost
Умник
Добрый день, ребята подскажите пожалуйста, как перевести эту фигю на mysql R41-2
PHP:
forward BildboardLoad();
public BildboardLoad()
{
new rows, fields;
cache_get_data(rows,fields);
if(!rows) return print("Билборды не найдены.");
for(new i; i < rows; i++)
{
cache_get_field_content(i, "bText", BildInfo[i][bText],huseyn,144);
cache_get_field_content(i, "bPosText", BildInfo[i][bPosText],huseyn,32);
cache_get_field_content(i, "bOwner", BildInfo[i][bOwner],huseyn,MAX_PLAYER_NAME);
BildInfo[i][bBackColor] = cache_get_field_content_int(i, "bBackColor");
BildInfo[i][bFontFace] = cache_get_field_content_int(i, "bFontFace");
BildInfo[i][bAligment] = cache_get_field_content_int(i, "bAligment");
BildInfo[i][bFontSize] = cache_get_field_content_int(i, "bFontSize");
BildInfo[i][bPos][0] = cache_get_field_content_float(i, "PosX");
BildInfo[i][bPos][1] = cache_get_field_content_float(i, "PosY");
BildInfo[i][bPos][2] = cache_get_field_content_float(i, "PosZ");
BildInfo[i][bPos][3] = cache_get_field_content_float(i, "PosA");
BildInfo[i][bDay] = cache_get_field_content_int(i, "bDay");
BildInfo[i][bObjectID] = CreateObject(cache_get_field_content_int(i, "bModel"),BildInfo[i][bPos][0], BildInfo[i][bPos][1], BildInfo[i][bPos][2], 0.00000000, 0.00000000, BildInfo[i][bPos][3], 300); // bObject
UpdateBuildText(i);
}
return printf("[Загружено биллбордов]: <%i>. Потрачено: <1 ms>.",MAX_BILLBORDS);
}
