É normal ter 3 warnings nesse plugin?
Código do plugin:
Histórico de Compilação:
Código do plugin:
- Código:
#include <amxmodx>
new gcvar1, gcvar2, gcvartotal
public plugin_init()
{
register_plugin("Testando", "0.0.0.1", "AnDroidEL")
gcvar1 = register_cvar("amx_cvar_a", "5")
gcvar2 = register_cvar("amx_cvar_b", "10")
}
public somando()
{
gcvartotal = get_cvar_num("gcvar1") + get_cvar_num("gcvar2")
}
Histórico de Compilação:
- Código:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Warning: Symbol is assigned a value that is never used: "gcvar1" on line 16
Warning: Symbol is assigned a value that is never used: "gcvar2" on line 16
Warning: Symbol is assigned a value that is never used: "gcvartotal" on line 16
Header size: 176 bytes
Code size: 316 bytes
Data size: 284 bytes
Stack/heap size: 16384 bytes; estimated max. usage=39 cells (156 bytes)
Total requirements: 17160 bytes
3 Warnings.
Done.