AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help with scripting.. again.. (https://forums.alliedmods.net/showthread.php?t=147658)

Shadezz 01-12-2011 07:25

help with scripting.. again..
 
2 Attachment(s)
been TRYING to get the cashmod to return information about health.. but i cant seem to get it working.. keep getting errors

PHP Code:

/home/groups/amxmodx/tmp3/phpA6v2l7.sma(1357) : error 076syntax error in the expression, or invalid function call
/home/groups/amxmodx/tmp3/phpA6v2l7.sma(1357) : warning 215expression has no effect
/home/groups/amxmodx/tmp3/phpA6v2l7.sma(1357) : error 001expected token";"but found "]"
/home/groups/amxmodx/tmp3/phpA6v2l7.sma(1357) : error 029invalid expressionassumed zero
/home/groups/amxmodx/tmp3/phpA6v2l7.sma(1357) : fatal error 107too many error messages on one line 

what im trying to do is, to get cashmod to return if player have bought xtra health so the healer will heal to more than 100
if the player have bought the upgrade.

like:
now: player have bought 125 health and healer only heals to 100
after: player have bought 125 health and healer heals to 125

plugins i use is attached

nnajko 01-12-2011 09:17

Re: help with scripting.. again..
 
Untested
EDIT: Code Removed

Shadezz 01-12-2011 15:01

Re: help with scripting.. again..
 
have u made changes in cashmod too?

Shadezz 01-12-2011 15:08

Re: help with scripting.. again..
 
hmm.. it goes bad load? :S

Shadezz 01-12-2011 15:11

Re: help with scripting.. again..
 
uhm.. when i buy 150 hp upgrade.. it heals to 150 but then it goes back to 100 hp and starts healing again? :S

nnajko 01-12-2011 15:21

Re: help with scripting.. again..
 
Quote:

Originally Posted by Shadezz (Post 1392196)
uhm.. when i buy 150 hp upgrade.. it heals to 150 but then it goes back to 100 hp and starts healing again? :S

Now it should be fixed.
You have to use the Cashmod I posted to.

EDIT: Code removed!

Shadezz 01-12-2011 15:29

Re: help with scripting.. again..
 
works like a charm now ;D thanks


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

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