AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=43)
-   -   i made a hero,but i only have sma,no amx (https://forums.alliedmods.net/showthread.php?t=33184)

TCCY 04-18-2005 10:10

i made a hero,but i only have sma,no amx
 
how can i use it??thx :D

Kebmaster 04-18-2005 10:41

SEARCH BUTTON! :roll:

Compile it

Read The Docs

TCCY 04-18-2005 10:47

ok~
i try to comiple it....but i got 26 errors......can someone help me abou it??
and i post my first hero here....

LUNCHBOX!!! 04-18-2005 11:35

Can you tell us what errors you get?

Kebmaster 04-18-2005 17:50

If u compile 4 amx , u get 26?
i Compiled with amxx , got about 6-7 errors...
So u've probably rescripted an amxx hero? :P

But , Its way to lame what u did with the names.....
First the name is: Alan .... Then Suddently , u call it : Hero :shock:

I would rename , re-edit the hero , and watch the errors (but u only need to fix the errors in the script , like "gHasMAMAPowers" , if u'll get an error or something like that , do only fix that , do not worry about the errors: assumed zero , and all those , until the end.....) :arrow: Do ONLY fix the "In-Script" errors! :wink:

TCCY 04-19-2005 03:55

sorry,it's my first heros,so i don't know where do i need to edit or not....i don't understand what do the error means....

here are the errors

Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

sh_alan.sma(25) : warning 217: loose indentation
sh_alan.sma(31) : warning 217: loose indentation
sh_alan.sma(77) : error 017: undefined symbol "ghasHeroPower"
sh_alan.sma(77) : warning 215: expression has no effect
sh_alan.sma(77) : error 001: expected token: ";", but found "]"
sh_alan.sma(77) : error 029: invalid expression, assumed zero
sh_alan.sma(77 -- 79) : warning 215: expression has no effect
sh_alan.sma(82) : error 017: undefined symbol "ghasHeroPower"
sh_alan.sma(82) : warning 215: expression has no effect
sh_alan.sma(82) : error 001: expected token: ";", but found "]"
sh_alan.sma(82) : error 029: invalid expression, assumed zero
sh_alan.sma(82) : error 029: invalid expression, assumed zero
sh_alan.sma(94) : error 017: undefined symbol "ghasHeroPower"
sh_alan.sma(94) : warning 215: expression has no effect
sh_alan.sma(94) : error 001: expected token: ";", but found "]"
sh_alan.sma(94) : error 029: invalid expression, assumed zero
sh_alan.sma(94) : error 029: invalid expression, assumed zero
sh_alan.sma(112) : error 017: undefined symbol "ghasHeroPower"
sh_alan.sma(112) : warning 215: expression has no effect
sh_alan.sma(112) : error 001: expected token: ";", but found "]"
sh_alan.sma(112) : error 029: invalid expression, assumed zero
sh_alan.sma(112) : error 029: invalid expression, assumed zero
sh_alan.sma(133) : error 017: undefined symbol "ghasHeroPower"
sh_alan.sma(133) : warning 215: expression has no effect
sh_alan.sma(133) : error 001: expected token: ";", but found "]"
sh_alan.sma(133) : error 029: invalid expression, assumed zero
sh_alan.sma(133) : error 029: invalid expression, assumed zero
sh_alan.sma(145) : error 017: undefined symbol "ghasHeroPower"
sh_alan.sma(145) : warning 215: expression has no effect
sh_alan.sma(145) : error 001: expected token: ";", but found "]"
sh_alan.sma(145) : error 029: invalid expression, assumed zero
sh_alan.sma(145) : error 029: invalid expression, assumed zero
sh_alan.sma(145) : warning 215: expression has no effect
sh_alan.sma(145) : error 001: expected token: ";", but found "return"
sh_alan.sma(155) : error 017: undefined symbol "ghasHeroPower"
sh_alan.sma(155) : warning 215: expression has no effect
sh_alan.sma(155) : error 001: expected token: ";", but found "]"

Compilation aborted.
26 Errors.

請按任意鍵繼續 . . .

Kebmaster 04-19-2005 07:30

sh_alan.sma(77) : error 017: undefined symbol "ghasHeroPower"
Should be: "ghasAlanPower" (in the .sma)

Edit all those names.... name ALL Names that says: Hero - to: Alan (but do not rename the hero "scripting , not names" , that will ruin the hero)

TCCY 04-19-2005 08:35

thx :D

ok,then i try compile it,i got 2 warnings.....

Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

sh_alan.sma(25) : warning 217: loose indentation
sh_alan.sma(31) : warning 217: loose indentation

2 Warnings.

請按任意鍵繼續 . . .

Chivas2973 04-19-2005 09:22

don't worry about those, just means you didn't line everything up perfect, but will still work

TCCY 04-19-2005 09:42

ok,thx :D


All times are GMT -4. The time now is 13:47.

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