- Регистрация
- 14 Дек 2018
- Сообщения
- 22
- Лучшие ответы
- 0
- Репутация
- 0
Здравствуйте, столкнулся с проблемой, что пишет якобы не используется...Хотя используется, в чем проблема?
Вот собственно сама ошибка
И когда еще доходит очередь, до использования этого диалога, он просто пропадает.
PHP:
publics: mysql_PromoCheck(playerid,code[])
{
new rows,fields;
cache_get_data(rows, fields);
if(!rows) return SCMF(playerid, -1, ""net"Промо-код '%s' не обнаружен",code);
new vipka = cache_get_field_content_int(0, "vip");
new money = cache_get_field_content_int(0, "money");
new ludi = cache_get_field_content_int(0, "ludi");
new rubli = cache_get_field_content_int(0, "rubli");
SCMF(playerid,COLOR_WHITE,""good"Промо-код найден: '%s' и содержит: VIP на %d дней, лицензии, %d$ и %d рублей.",code, vipka, money, rubli),
PlayerInfo[playerid][pLicenses][0] = 1; PlayerInfo[playerid][pLicenses][1] = 1; PlayerInfo[playerid][pLicenses][2] = 1; PlayerInfo[playerid][pLicenses][3] = 1; PlayerInfo[playerid][pDRInections] = vipka, PlayerInfo[playerid][pRub] += rubli; Hook_GivePlayerMoney(playerid, money);
PlayerInfo[playerid][pPromo] = 1; UpdatePlayerData(playerid, "pPromo", 1);
ludi --;
format(stringa,sizeof(stringa),"UPDATE `promo` SET `ludi` = '%d' WHERE `code` = '%s'",ludi,code);
mysql_function_query(connects, stringa, false, "", "");
if(ludi == 0)
{
format(stringa,sizeof(stringa), "DELETE FROM `promo` WHERE `code`='%s'", code);
mysql_tquery(connects, stringa, false, "", "");
}
if(gettime() >= cache_get_field_content_int(0, "data") && ludi == 0)
{
format(stringa,sizeof(stringa), "DELETE FROM `promo` WHERE `code`='%s'", code);
mysql_tquery(connects, stringa, false, "", "");
}
return 1;
}
PHP:
case 2389:
{
if(!response) return true;
new qstring[128];
if(PlayerInfo[playerid][pPromo] == 1) return SendClientMessage(playerid, -1, "Вы уже вводили промо-код");
format(qstring,sizeof(qstring), "SELECT * FROM `promo` WHERE `code`='%s'", inputtext);
mysql_function_query(connects, qstring, true, "mysql_PromoCheck", "is", playerid,inputtext);
}
Заранее спасибо(7995) : symbol is never used: "mysql_PromoCheck"
И когда еще доходит очередь, до использования этого диалога, он просто пропадает.