SF Bets warning 233

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
460
Реакции
68
Помог
7 раз(а)
Ошибка
AMX Mod X Compiler 1.9.0.5263
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

sf_bets.sma(256) : warning 233: symbol "aes_add_player_exp" is marked as deprecated: Use aes_add_player_exp_f() instead.
sf_bets.sma(261) : warning 233: symbol "aes_add_player_bonus" is marked as deprecated: Use aes_add_player_bonus_f() instead.
sf_bets.sma(439) : warning 233: symbol "aes_add_player_exp" is marked as deprecated: Use aes_add_player_exp_f() instead.
sf_bets.sma(453) : warning 233: symbol "aes_add_player_bonus" is marked as deprecated: Use aes_add_player_bonus_f() instead.
sf_bets.sma(505) : warning 233: symbol "aes_add_player_exp" is marked as deprecated: Use aes_add_player_exp_f() instead.
sf_bets.sma(510) : warning 233: symbol "aes_add_player_bonus" is marked as deprecated: Use aes_add_player_bonus_f() instead.
sf_bets.sma(672) : warning 233: symbol "aes_get_player_stats" is marked as deprecated: Use aes_get_player_*() instead.
sf_bets.sma(804) : warning 233: symbol "aes_get_player_stats" is marked as deprecated: Use aes_get_player_*() instead.
Header size: 1912 bytes
Code size: 21276 bytes
Data size: 5200 bytes
Stack/heap size: 16384 bytes
Total requirements: 44772 bytes

8 Warnings.
Done.
Компилятор
Локальный
Amx Mod X
1.9.0
Исходный код
Исходник прикрепил.
Всем доброго времени суток. Помогите устранить варны. Начались после обновления Reapi
 
В этой теме было размещено решение! Перейти к решению.

Вложения

Сообщения
321
Реакции
73
Помог
11 раз(а)
HARDCORE, замени в исходнике
aes_add_player_exp на aes_add_player_exp_f
aes_add_player_bonus на aes_add_player_bonus_f
aes_add_player_exp на aes_add_player_exp_f
и тд
 
Сообщения
460
Реакции
68
Помог
7 раз(а)
Angerfist,
C++:
AMX Mod X Compiler 1.9.0.5263
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

sf_bets.sma(256) : error 017: undefined symbol "aes_add_player_exp_f"
sf_bets.sma(261) : error 017: undefined symbol "aes_add_player_bonus_f"
sf_bets.sma(439) : error 017: undefined symbol "aes_add_player_exp_f"
sf_bets.sma(453) : error 017: undefined symbol "aes_add_player_bonus_f"
sf_bets.sma(505) : error 017: undefined symbol "aes_add_player_exp_f"
sf_bets.sma(510) : error 017: undefined symbol "aes_add_player_bonus_f"
sf_bets.sma(672) : error 017: undefined symbol "aes_get_player_stats_"
sf_bets.sma(672 -- 676) : warning 215: expression has no effect
sf_bets.sma(804) : error 017: undefined symbol "aes_get_player_stats_"
sf_bets.sma(804 -- 806) : warning 215: expression has no effect

8 Errors.
Could not locate output file sf_bets.amx (compile failed).
 
Сообщения
460
Реакции
68
Помог
7 раз(а)
w0w, заменил теперь другая.
C++:
AMX Mod X Compiler 1.9.0.5263
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

sf_bets.sma(671) : error 017: undefined symbol "AES_ST_END"
sf_bets.sma(672) : error 017: undefined symbol "aes_get_player_stats_"
sf_bets.sma(672) : error 017: undefined symbol "rt"
sf_bets.sma(672 -- 676) : warning 215: expression has no effect
sf_bets.sma(678) : error 017: undefined symbol "rt"
sf_bets.sma(678) : error 017: undefined symbol "AES_ST_EXP"
sf_bets.sma(678) : error 029: invalid expression, assumed zero
sf_bets.sma(678) : fatal error 107: too many error messages on one line

Compilation aborted.
7 Errors.
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Аварийный останов (стек памяти сброшен на диск)
 
Сообщения
1,420
Реакции
2,511
Помог
58 раз(а)
803 строка и ниже:

Код:
-    new rt[AES_ST_END]
-    aes_get_player_stats(id,rt)
+    new Float:exp = aes_get_player_exp(id);
+    new bonuses = aes_get_player_bonus(id);

-    (item == 3 && rt[AES_ST_EXP] < players_data[id][sp])
+    (item == 3 && exp < players_data[id][sp])
    ||
-    (item == 4 && rt[AES_ST_BONUSES] < players_data[id][sp])
+    (item == 4 && bonuses < players_data[id][sp])
671 строка и ниже:
Код:
-    new rt[AES_ST_END]
-    aes_get_player_stats(id,rt)
+    new Float:exp = aes_get_player_exp(id);
+    new bonuses = aes_get_player_bonus(id);

-    if(rt[AES_ST_EXP] < players_data[id][BET_EXP])
+    if(exp < players_data[id][BET_EXP])

-    if(rt[AES_ST_BONUSES] < players_data[id][BET_BONUS])
+    if(bonuses < players_data[id][BET_BONUS])
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу