DarksLight2
Дебютант
При вводе команды /jobday ничего не происходит, что не так?
PHP:
CMD:jobDay(playerid,params[])
{
new sql[128];
mysql_format(dbHandle, sql, sizeof sql, "SELECT * FROM jobDay WHERE org = %d", pInfo[playerid][pMember]);
new Cache:result = mysql_query(dbHandle, sql);
new rows = cache_get_row_count(dbHandle);
if(rows)
{
new mond[10],tusd[10],wednesd[10],thursd[10],frid[10],saturd[10],sund[10],text[300];
cache_get_field_content(0, "Monday", mond, 10);
cache_get_field_content(0, "Tusday", tusd, 10);
cache_get_field_content(0, "Wednesday", wednesd, 10);
cache_get_field_content(0, "Thusrday", thursd, 10);
cache_get_field_content(0, "Friday", frid, 10);
cache_get_field_content(0, "Saturday", saturd, 10);
cache_get_field_content(0, "Sunday", sund, 10);
if(strval(mond) == 0) mond = "Выходной";
if(strval(tusd) == 0) tusd = "Выходной";
if(strval(wednesd) == 0) wednesd = "Выходной";
if(strval(thursd) == 0) thursd = "Выходной";
if(strval(frid) == 0) frid = "Выходной";
if(strval(saturd) == 0) saturd = "Выходной";
if(strval(sund) == 0) sund = "Выходной";
format(text, sizeof text, "Понедельник: %s\nВторник: %s\nСреда: %s\nЧетверг: %s\nПятница: %s\nСубота: %s\nВоскресенье: %s", mond, tusd, wednesd, thursd, frid, saturd, sund);
ShowPlayerDialog(playerid, dNull, DIALOG_STYLE_MSGBOX, "{FFCC00}Рабочий день", text, "", "Закрыть");
}
}
