AlliedModders

Webcompiling errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alexhomie
Member
Karma: Neutral
Old 09-06-2008 , 14:27   Webcompiling errors
Reply With Quote #1

Hello, I was trying to make a superhero mod hero today. I finished creating it. i got the sma file as element.sma, i dont know if its supposed to be sh_element.sma but yeah. The sma is posted down at the bottom. I used http://www.amxmodx.org/webcompiler.cgi to compile it and i got these errors.


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

Code:
/home/groups/amxmodx/compiler3/include/superheromod.inc(199) : error 070: rational number support was not enabled
/home/groups/amxmodx/compiler3/include/superheromod.inc(307) : error 017: undefined symbol "set_task"
/home/groups/amxmodx/compiler3/include/superheromod.inc(442) : error 017: undefined symbol "get_cvar_num"
/home/groups/amxmodx/compiler3/include/superheromod.inc(449) : error 017: undefined symbol "get_user_name"
/home/groups/amxmodx/compiler3/include/superheromod.inc(450) : error 017: undefined symbol "get_user_authid"
/home/groups/amxmodx/compiler3/include/superheromod.inc(451) : error 017: undefined symbol "get_user_userid"
/home/groups/amxmodx/compiler3/include/superheromod.inc(452) : error 017: undefined symbol "format"
/home/groups/amxmodx/compiler3/include/superheromod.inc(455) : error 017: undefined symbol "copy"
/home/groups/amxmodx/compiler3/include/superheromod.inc(458) : error 017: undefined symbol "strlen"
/home/groups/amxmodx/compiler3/include/superheromod.inc(464) : error 017: undefined symbol "format"
/home/groups/amxmodx/compiler3/include/superheromod.inc(465) : error 017: undefined symbol "server_print"
/home/groups/amxmodx/compiler3/include/superheromod.inc(466) : error 017: undefined symbol "log_message"
/home/groups/amxmodx/tmp3/phpMVLjOo.sma(11) : error 017: undefined symbol "register_plugin"
/home/groups/amxmodx/tmp3/phpMVLjOo.sma(11) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpMVLjOo.sma(11) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp3/phpMVLjOo.sma(11) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpMVLjOo.sma(11) : fatal error 107: too many error messages on one line

Compilation aborted.
16 Errors.
472090 successful compiles to date.
287934 failed compiles to date.
Old compiler: 101980 compiles before decommission.
This tool by: David "BAILOPAN" Anderson.

Was i supposed to use a short name plugin thing because i didn't get that.

SMA:



Code:
//Created using micke1101's hero generator for 1.2 #include <superheromod> new gHeroID new bool:gHasElement[SH_MAXSLOTS+1] new gPcvarHealPoints new gPcvarawpMult //---------------------------------------------------------------------------------------------- public plugin_init() {         register_plugin("SUPERHERO Element", SH_VERSION_STR, "Micke1101's Hero generator")         new pcvarLevel = register_cvar("Element_level", "21")         new pcvarHealth = register_cvar("Element_health", "200")         new pcvarArmor = register_cvar("Element_armor", "200")         new pcvarGravity = register_cvar("Element_gravity", "0.15")         gPcvarawpMult = register_cvar("Element_awpmult", "2.0")         gPcvarHealPoints = register_cvar("Element_healpoints", "5")         new heroID = sh_create_hero("Element", pcvarLevel)         sh_set_hero_info(heroID, "Sick awp", "Has an nice awp skin")         sh_set_hero_hpap(heroID,  pcvarHealth,pcvarArmor)         sh_set_hero_grav(heroID, pcvarGravity)         set_task(1.0, "Element_loop", _, _, _, "b")         register_event("CurWeapon", "weapon_change", "be", "1=1") } public plugin_precache() {       precache_model("models/shmod/Element_v_awp.mdl")       precache_model("models/shmod/Element_p_awp.mdl") } public sh_hero_init(id, heroID, mode) {         if ( gHeroID != heroID ) return         switch(mode) {             case SH_HERO_ADD: {                 gHasElement[id] = true                 switch_model(id)             }           case SH_HERO_DROP: {                 gHasElement[id] = false                 if ( is_user_alive(id) ) {                 }             }         } } //---------------------------------------------------------------------------------------------- public Element_loop() {         if ( !sh_is_active() ) return         static players[SH_MAXSLOTS], playerCount, player, i         get_players(players, playerCount, "ah")     for ( i = 0; i < playerCount; i++ ) {             player = players[i]             if ( gHasElement[player] ) {                 sh_add_hp(player, get_pcvar_num(gPcvarHealPoints))             }         } } //---------------------------------------------------------------------------------------------- public client_damage(attacker, victim, damage, wpnindex, hitplace) {         if ( !sh_is_active() ) return         if ( !is_user_alive(victim) || !is_user_connected(attacker) ) return         if ( gHasElement[attacker] && wpnindex == CSW_AWP ) {             new headshot = hitplace == 1 ? 1 : 0             new extraDamage = floatround(damage * get_pcvar_float(gPcvarawpMult) - damage)             if ( extraDamage > 0 ) sh_extra_damage(victim, attacker, extraDamage, "awp", headshot)       } } public weapon_change(id) {         if ( !sh_is_active() || !gHasElement[id] ) return         if ( read_data(2) == CSW_AWP ) switch_model(id)         if ( read_data(2) != CSW_AWP ) return {         if ( read_data(3) == 0 ) {             sh_reload_ammo(id, 1)           }       } } public switch_model(id) {         if ( !sh_is_active() || !is_user_alive(id) || !gHasElement[id] ) return         if ( cs_get_user_shield(id) ) return         if ( get_user_weapon(id) == CSW_AWP ) {             set_pev(id, pev_viewmodel2, "models/shmod/Element_v_awp.mdl")             set_pev(id, pev_weaponmodel2, "models/shmod/Element_p_awp.mdl")       } }

And I was wondering how i get my weapon modules.

DO i go on fpsbanana.com or something and get a model skin i like and rename it? Please tell me!!!! Thanks

+Karma to whoever that helps. If you have any questions or need more details please just post a reply.
Attached Files
File Type: sma Get Plugin or Get Source (element.sma - 97 views - 3.2 KB)

Last edited by vittu; 09-08-2008 at 04:22.. Reason: the smiley face is really (458) :
alexhomie is offline
alexhomie
Member
Karma: Neutral
Old 09-06-2008 , 14:32   Re: Webcompiling errors
Reply With Quote #2

The SMILEY FACE is really (458 ) it reads as a smiley =/
alexhomie is offline
YamiKaitou
Has a lovely bunch of coconuts
Karma: Good
Location: Texas
Old 09-06-2008 , 14:55   Re: Webcompiling errors
Reply With Quote #3

You are missing some includes. Try including amxmodx and amxmisc


Also, SH has their own section, moving there
__________________
PM me if you need me directly. I do not check the forums as much anymore, hopefully that will change soon.


SuperCentral.net
YamiKaitou is offline
alexhomie
Member
Karma: Neutral
Old 09-06-2008 , 14:59   Re: Webcompiling errors
Reply With Quote #4

Quote:
Originally Posted by YamiKaitou View Post
You are missing some includes. Try including amxmodx and amxmisc


Also, SH has their own section, moving there
I have fixed this my errors have shorten down to 7 errors

....

Code:
/home/groups/amxmodx/compiler3/include/superheromod.inc(199) : error 025: function heading differs from prototype
/home/groups/amxmodx/compiler3/include/superheromod.inc(307) : error 088: number of arguments does not match definition
/home/groups/amxmodx/compiler3/include/superheromod.inc(442) : error 017: undefined symbol "get_cvar_num"
/home/groups/amxmodx/compiler3/include/superheromod.inc(442) : warning 215: expression has no effect
/home/groups/amxmodx/compiler3/include/superheromod.inc(442) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/compiler3/include/superheromod.inc(442) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/compiler3/include/superheromod.inc(442) : fatal error 107: too many error messages on one line

Last edited by vittu; 09-08-2008 at 04:23..
alexhomie is offline
FukfaCe
Member
Karma: Neutral
Old 09-07-2008 , 11:13   Re: Webcompiling errors
Reply With Quote #5

Try make the hero again, but WITHOUT the healing thing, and try if that works.

In the old hero creator the healing thing is made wrong, don't know if it works in the new with 1.2, but try without...
__________________
Jelles legeplads (DK) sh server (mine)

FukfaCe is offline
Send a message via MSN to FukfaCe
micke1101
Veteran Member
Karma: Good
Location: Banned-town
Old 09-07-2008 , 11:26   Re: Webcompiling errors
Reply With Quote #6

Download the compiler in the menu cause if you compile locally it works just fine
micke1101 is offline
nate-dog
Member
Karma: Neutral
Location: Denmark
Old 10-24-2009 , 17:53   Re: Webcompiling errors
Reply With Quote #7

where is that generator you use?
nate-dog is offline
Reply


Thread Tools
Display Modes

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 21:53.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Theme made by Freecode Sponsored by Layered Technologies