The Game Modding Community - Since 2001

AMXMODX Compiler/Web Compiler error

A Forum Thread for Counter-Strike 1.6

i was trying to compile a .sma file... i havent done anything stupid to the .sma file to mess up the codes... basically i just downloaded a plugin called Kill Rewards Plugin by sneaky.amxx as a request by schiff... the file was only a .sma file... so i could edit the kill rewards message instead of "you have been rewarded $200 blah blah blah" to "+$200 for neutralizing an enemy blah blah blah"... but i didnt edit it, it was "raw"... so i compiled it from cstrike/addons/amxmox/scripting/compile.exe and shows an error message: 

///kill_rewards.sma
//internal error.
Press enter to exit...


So i tried again at  the AMXMODX Web Compiler and shows the error:

Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/textDqa9yn.sma(1) : error 013: no entry point (no public functions)

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textDqa9yn.amx (compile failed).
Here is the code for the plugin:
#include <amxmodx>

#include <amxmisc>

#include <cstrike>

#define UNIVERSE_PORTAL "Kill Rewards - Requested by Schiff"

#define UNIVERSE_DIMENSION "1.0"

#define CONSCIOUS_ENTITY "Sneaky@GlobalModders.net"

#define REWARD_KNIFE 100

#define REWARD_PISTOL 200

#define REWARD_SHOTGUN 300

#define REWARD_SMG 400

#define REWARD_RIFLE 500

#define REWARD_SNIPER 600 // Included: AWP, SCOUT, G3SG1, SG550

#define REWARD_MACHINEGUN 700

#define REWARD_GRENADE 800

new const GabenNames[8][] =

{

"Knife",

"Pistol",

"Shotgun",

"SMG",

"Rifle",

"Sniper",

"Machinegun",

"Grenade"

}

enum

{

GABEN_KNIFE = 0,

GABEN_PISTOL,

GABEN_SHOTGUN,

GABEN_SMG,

GABEN_RIFLE,

GABEN_SNIPER,

GABEN_MACHINEGUN,

GABEN_GRENADE

}

public plugin_init()

{

register_plugin(UNIVERSE_PORTAL, UNIVERSE_DIMENSION, CONSCIOUS_ENTITY)

register_event("DeathMsg", "Event_PowerfulSneaky", "a")

}

public Event_PowerfulSneaky()

{

static CollectiveConsciousness, Infinity[32]

static CSW, Type



CollectiveConsciousness = read_data(1)

read_data(4, Infinity, 31)



// Too Powerful

if(equal(Infinity, "grenade")) // sou desu ne!

CSW = CSW_HEGRENADE

else { // Sneaky is so powerful xd

static ChiGong[64];

formatex(ChiGong, 63, "weapon_%s", Infinity)



CSW = get_weaponid(ChiGong)

}



// infinite potential

Type = Get_InfinitePotential(CSW)

if(Type == -1) return



static AkashicRecord; AkashicRecord = 0;

switch(Type)

{

case GABEN_KNIFE: AkashicRecord = REWARD_KNIFE

case GABEN_PISTOL: AkashicRecord = REWARD_PISTOL

case GABEN_SHOTGUN: AkashicRecord = REWARD_SHOTGUN

case GABEN_SMG: AkashicRecord = REWARD_SMG

case GABEN_RIFLE: AkashicRecord = REWARD_RIFLE

case GABEN_SNIPER: AkashicRecord = REWARD_SNIPER

case GABEN_MACHINEGUN: AkashicRecord = REWARD_MACHINEGUN

case GABEN_GRENADE: AkashicRecord = REWARD_GRENADE

}



Set_AkashicRecord(CollectiveConsciousness, Type, AkashicRecord)

}

Set_AkashicRecord(id, Type, AkashicRecord)

{

static WatashiNoAkashic; WatashiNoAkashic = cs_get_user_money(id)

if(WatashiNoAkashic >= 16000) return



cs_set_user_money(id, min(WatashiNoAkashic + AkashicRecord, 16000))

client_print(id, print_chat, "You've been rewarded [$%i] by getting a kill with a [%s]", AkashicRecord, GabenNames[Type])

}

public Get_InfinitePotential(CSW)

{

static CenterOfTheUniverse; CenterOfTheUniverse = -1

if(CSW == CSW_KNIFE) CenterOfTheUniverse = GABEN_KNIFE

else if(CSW == CSW_P228 || CSW == CSW_ELITE || CSW == CSW_FIVESEVEN || CSW == CSW_USP || CSW == CSW_GLOCK18 || CSW == CSW_DEAGLE) CenterOfTheUniverse = GABEN_PISTOL

else if(CSW == CSW_XM1014 || CSW == CSW_M3) CenterOfTheUniverse = GABEN_SHOTGUN

else if(CSW == CSW_MAC10 || CSW == CSW_UMP45 || CSW == CSW_MP5NAVY || CSW == CSW_TMP || CSW == CSW_P90) CenterOfTheUniverse = GABEN_SMG

else if(CSW == CSW_AUG || CSW == CSW_SG552 || CSW == CSW_GALIL || CSW == CSW_FAMAS || CSW == CSW_M4A1 || CSW == CSW_AK47) CenterOfTheUniverse = GABEN_RIFLE

else if(CSW == CSW_AWP || CSW == CSW_G3SG1 || CSW == CSW_SG550) CenterOfTheUniverse = GABEN_SNIPER

else if(CSW == CSW_M249) CenterOfTheUniverse = GABEN_MACHINEGUN

else if(CSW == CSW_HEGRENADE) CenterOfTheUniverse = GABEN_GRENADE



return CenterOfTheUniverse

}

Posts

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Author

kaxp3r avatar
kaxp3r Joined 4mo ago
Offline
116 points Ranked 27493rd

kaxp3r
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 346 Views
  • 2 Posts
  • 3mo Submitted

Yo, buddy. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Sound fun? Sign up now!

Already a Bananite? Login

bcp.crwdcntrl.net tracking pixel