PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define SIZE 5
new Float:values[SIZE][] = { 0.01, 0.02, 0.03, 0.04, 0.05 }
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
}
public test()
{
new Float:dummy = values[random_num(0, SIZE - 1)]
}
Code:
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Array must be indexed (variable "-unknown-") on line 21
1 Error.
Could not locate output file C:\Documents and Settings\pc\Moje dokumenty\Moja muzyka\Untitled.amx (compile failed).
Why ?
__________________