Raised This Month: $ Target: $400
 0% 

Little error to a code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 01-03-2011 , 17:46   Little error to a code
Reply With Quote #1

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] == ) ? "0" "1"
    
set_pev(idpev_takedamageGodMod[id] == "DAMAGE_NO" "DAMAGE_AIM")
    
ColorChat(idGREEN"[XJ]^x03 God Mode %s"GodMod[id] ? "On" "Off")
    
    return 
PLUGIN_HANDLED


Last edited by NucL3ra; 01-03-2011 at 17:49.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode