Seems Like Compiler Don't Support Dhudmessage.

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
213
Реакции
71
Помог
2 раз(а)
Ошибка
Attached in SS
Компилятор
Локальный
Amx Mod X
1.9.0
Исходный код
#include <amxmodx> 
#include <hamsandwich>
#include <dhudmessage>

#define PLUGIN "Enemies Left"
#define VERSION "31/12/2018"
#define AUTHOR "raizo11"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Killed, "player", "PlayerKilled", 1)
}

public PlayerKilled(id)
{
static X[32], Y[32], XNum, YNum
get_players(X, XNum, "ae", "TERRORIST")
get_players(Y, YNum, "ae", "CT")

set_dhudmessage(110, 55, 110, -1.0, 0.70, 1, 0.1, 3.0, 0.1, 2.0, false)
show_dhudmessage(0, "TERO %d - CT %d!", XNum, YNum)
}
Plugin Complies Perfectly With 1.8.2 Compiler But With AMXX 1.90 [5235] It gives following Errors IN SS.
 
В этой теме было размещено решение! Перейти к решению.

Вложения

Сообщения
213
Реакции
71
Помог
2 раз(а)
DrStrange, this means that in that line there is too much arguments in the native. You need to remove the last one (line 21).
Well It helped and compiled but Hud Color Changed And Hud Moved from bottom to Top.
If it was implemented, then what about Its Position And Color?
Because Line 21
set_dhudmessage(110, 55, 110, -1.0, 0.70, 1, 0.1, 3.0, 0.1, 2.0, false)
 
Сообщения
213
Реакции
71
Помог
2 раз(а)
DrStrange, I actually don't understand what you're trying to do. If you want to change the coordinates you need to change -1.0 (X) and 0.70 (Y).
After removing #include <dhudmessage>
Rest Plugin is as it is ... > Errors In SS.
This is line 21 and plugin don't compile with it. Hence I said, after removing this line 21 co-ordinates were disturbed.
set_dhudmessage(110, 55, 110, -1.0, 0.70, 1, 0.1, 3.0, 0.1, 2.0, false)
 
Сообщения
213
Реакции
71
Помог
2 раз(а)
DrStrange, I meant not removing the line but removing the last argument.
Oh !! Thanks !! It Worked :D


Код:
#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Enemies Left"
#define VERSION "31/12/2018"
#define AUTHOR "raizo11"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)   
    RegisterHam(Ham_Killed, "player", "PlayerKilled", 1)
}

public PlayerKilled(id)
{
    static X[32], Y[32], XNum, YNum
    get_players(X, XNum, "ae", "TERRORIST")
    get_players(Y, YNum, "ae", "CT")
    
    set_dhudmessage(110, 55, 110, -1.0, 0.70, 1, 0.1, 3.0, 0.1, 2.0) 
    show_dhudmessage(0, "TERO %d  -  CT %d!", XNum, YNum)
}
 
Статус
В этой теме нельзя размещать новые ответы.

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

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