I'm getting this error and I think I'm too tired to see where it does come from.....
Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// 1.sma
// D:\Jocuri\Steam\steamapps\nuc_l_ear\counter-strike\cstrike\addons\amxmodx\scr
ipting\1.sma(19 -- 20) : error 006: must be assigned to an array
//
// 1 Error.
// Could not locate output file compiled\1.amx (compile failed).
//
// Compilation Time: 0.06 sec
// ----------------------------------------
Press enter to exit ...
-----------------------------------------
PHP Code:
#include <amxmodx>
#include <colorchat>
#include <fakemeta>
new GodMod[33]
public plugin_init()
{
register_plugin("Godmode","0.1","nucLeaR")
register_clcmd("say /godmode","GodMode")
register_clcmd("say /god","GodMode")
register_clcmd("say .god","GodMode")
}
public GodMode(id)
{
GodMod[id] = ( GodMod[id] == 1 ) ? "0" : "1"
set_pev(id, pev_takedamage, GodMod[id] == 1 ? "DAMAGE_NO" : "DAMAGE_AIM")
ColorChat(id, GREEN, "[XJ]^x03 God Mode %s", GodMod[id] ? "On" : "Off")
return PLUGIN_HANDLED
}