Deci sa zicem ca avem acest plugin (care e gresit) :
Code: Select all
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test", "call_test");
}
public call_test(id)
{
client_print(id, print_chat, "Acesta este un test);
}
Code: Select all
/src/textZ2b0nS.sma(18) : error 037: invalid string (possibly non-terminated string)
Hmm oare unde e gresit pluginul ??
pai daca citim in mesajul errori vom vedea in paranteza linia unde e e eroare
Code: Select all
(18)
Code: Select all
1/* Plugin generated by AMXX-Studio */
2
3#include <amxmodx>
4#include <amxmisc>
5
6#define PLUGIN "New Plug-In"
7#define VERSION "1.0"
8#define AUTHOR "author"
9
10
11public plugin_init() {
12 register_plugin(PLUGIN, VERSION, AUTHOR)
13 register_clcmd("say /test", "call_test");
14}
15
16public call_test(id)
17{
18 client_print(id, print_chat, "Acesta este un test);
19}
uitatia linia 18 :
Code: Select all
18 client_print(id, print_chat, "Acesta este un test);
Hmm unde ar putea fii eroare ? pai cear fi sa citim linia .. oo da am uitat sa inchide stringul ""
deci inlocuim asta :
Code: Select all
client_print(id, print_chat, "Acesta este un test);
Code: Select all
client_print(id, print_chat, "Acesta este un test");
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Header size: 180 bytes
Code size: 212 bytes
Data size: 256 bytes
Stack/heap size: 16384 bytes; estimated max. usage=779 cells (3116 bytes)
Total requirements: 17032 bytes
Done.