[ROZWIĄZANE] Problem z kompilacją
LEMO
14.08.2020
//// gunxpmod_shop.sma
//
// \COMPILER 1.8.3\gunxpmod_shop.sma(248) : error 017: undefined symbol "client_printcolor"
// \COMPILER 1.8.3\gunxpmod_shop.sma(249) : error 017: undefined symbol "client_printcolor"
//
// 2 Errors.
// Could not locate output file compiled\gunxpmod_shop.amx (compile failed).
//
// Compilation Time: 0,53 sec
// ----------------------------------------
248/249:
248/249:
client_printcolor(id, "/yItem Bought Successfully, Item: /g%s.", g_itemname[gSelected[id]][item_id])
client_printcolor(id, "/yDescription: /g%s.", g_itemdesc[gSelected[id]][item_id])
LEMO
14.08.2020
//// gun.sma
//
// COMPILER 1.8.3\gunxpmod_shop.sma(249) : error 017: undefined symbol "client_printcolor"
// COMPILER 1.8.3\gunxpmod_shop.sma(250) : error 017: undefined symbol "client_printcolor"
// COMPILER 1.8.3\gunxpmod_shop.sma(32) : warning 203: symbol is never used: "ColorChat"
// COMPILER 1.8.3\gunxpmod_shop.sma(71) : warning 203: symbol is never used: "ColorSelection"
// COMPILER 1.8.3\gunxpmod_shop.sma(66) : warning 203: symbol is never used: "FindPlayer"
// COMPILER 1.8.3\gunxpmod_shop.sma(73) : warning 203: symbol is never used: "ShowColorMessage"
// COMPILER 1.8.3\gunxpmod_shop.sma(77) : warning 203: symbol is never used: "Team_Info"
//
// 2 Errors.
// Could not locate output file compiled\gunxpmod_shop.amx (compile failed).
//
// Compilation Time: 0,28 sec
// ----------------------------------------
LEMO
14.08.2020
//// gun.sma
//
// COMPILER 1.8.3\gunxpmod_shop.sma(249) : error 017: undefined symbol "client_printcolor"
// COMPILER 1.8.3\gunxpmod_shop.sma(250) : error 017: undefined symbol "client_printcolor"
// COMPILER 1.8.3\gunxpmod_shop.sma(32) : warning 203: symbol is never used: "ColorChat"
// COMPILER 1.8.3\gunxpmod_shop.sma(71) : warning 203: symbol is never used: "ColorSelection"
// COMPILER 1.8.3\gunxpmod_shop.sma(66) : warning 203: symbol is never used: "FindPlayer"
// COMPILER 1.8.3\gunxpmod_shop.sma(73) : warning 203: symbol is never used: "ShowColorMessage"
// COMPILER 1.8.3\gunxpmod_shop.sma(77) : warning 203: symbol is never used: "Team_Info"
//
// 2 Errors.
// Could not locate output file compiled\gunxpmod_shop.amx (compile failed).
//
// Compilation Time: 0,28 sec
// ----------------------------------------
Użytkownik LEMO edytował ten post 14.08.2020 21:23
Dropsu
14.08.2020
pobierz i wsadz do include https://amxx.pl/doku.../i107/chatcolori wtedy skompiluj
LEMO
15.08.2020
pobierz i wsadz do include https://amxx.pl/doku.../i107/chatcolori wtedy skompiluj
zrobiłem to przed założeniem tematu.
Rivit
15.08.2020
stock client_printcolor(const id, const input[], any:...) { new count = 1, players[32]; static msg[191]; vformat(msg,190,input,3); replace_all(msg,190,"/g","^4");// green txt replace_all(msg,190,"/y","^1");// orange txt replace_all(msg,190,"/ctr","^3");// team txt replace_all(msg,190,"/w","^0");// team txt if (id) players[0] = id; else get_players(players,count,"ch"); for (new i=0;i<count;i++) if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]); write_byte(players[i]); write_string(msg); message_end(); } }
Dodaj sobie to na sam dół swojego shopa.
LEMO
16.08.2020
stock client_printcolor(const id, const input[], any:...) { new count = 1, players[32]; static msg[191]; vformat(msg,190,input,3); replace_all(msg,190,"/g","^4");// green txt replace_all(msg,190,"/y","^1");// orange txt replace_all(msg,190,"/ctr","^3");// team txt replace_all(msg,190,"/w","^0");// team txt if (id) players[0] = id; else get_players(players,count,"ch"); for (new i=0;i<count;i++) if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]); write_byte(players[i]); write_string(msg); message_end(); } }Dodaj sobie to na sam dół swojego shopa.
Tak to mniej więcej wyszło
//// gunxpmod_shop.sma // // COMPILER 1.8.3\gunxpmod_shop.sma(32) : warning 203: symbol is never used: "ColorChat" // COMPILER 1.8.3\gunxpmod_shop.sma(71) : warning 203: symbol is never used: "ColorSelection" // COMPILER 1.8.3\gunxpmod_shop.sma(66) : warning 203: symbol is never used: "FindPlayer" // COMPILER 1.8.3\gunxpmod_shop.sma(73) : warning 203: symbol is never used: "ShowColorMessage" // COMPILER 1.8.3\gunxpmod_shop.sma(77) : warning 203: symbol is never used: "Team_Info" // Header size: 1140 bytes // Code size: 15816 bytes // Data size: 129828 bytes // Stack/heap size: 16384 bytes // Total requirements: 163168 bytes // // 5 Warnings. // Done. // // Compilation Time: 0,31 sec // ----------------------------------------
LEMO
16.08.2020
Usuń na początku kodu:
#include <ColorChat>
//// gunxpmod_shop.sma
//
// Header size: 1140 bytes
// Code size: 15816 bytes
// Data size: 129828 bytes
// Stack/heap size: 16384 bytes
// Total requirements: 163168 bytes
// Done.
//
// Compilation Time: 0,31 sec
// ----------------------------------------
Dzięki wszystkim za odpowiedzi! +++++++
Dzięki wszystkim za odpowiedzi! +++++++
Użytkownik LEMO edytował ten post 16.08.2020 01:59
dasiek
17.08.2020
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz,
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz,

Z pozdrowieniami,
Zespół AMXX.PL