Raised This Month: $ Target: $400
 0% 

error 029: invalid expression, assumed zero


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
timian
Member
Join Date: Oct 2006
Location: Denmark
Old 01-25-2010 , 13:33   error 029: invalid expression, assumed zero
Reply With Quote #1

Will someone help me find the bug?

PHP Code:
14 public player_spawn(id){
15    new minhp get_cvar_num("even_minhp");
16    new ajusted get_cvar_num("even_starthp") - get_cvar_num("even_ajusthp"); 
17    new FOK get_user_frags(id) - get_user_deaths(id); 
18    new KOF get_user_deaths(id) - get_user_frags(id); 
19    if(FOK >= 0)
20        if(ajusted 0
21            set_user_health(idajusted)
22        else
23            set_user_health(if, minhp
24    if(get_user_health(id) < ) 
25        set_user_health(idminhp
26    if(KOF >= 0
27        set_user_health(idajusted
28 

Last edited by timian; 01-25-2010 at 13:49.
timian is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-25-2010 , 13:37   Re: error 029: invalid expression, assumed zero
Reply With Quote #2

You should usually provide which line the error is, but it most likely is:
Code:
    if(get_user_health(id) < )
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
timian
Member
Join Date: Oct 2006
Location: Denmark
Old 01-25-2010 , 13:46   Re: error 029: invalid expression, assumed zero
Reply With Quote #3

thanks! that fix one og my 2 erros.

same bug on line 22

//rewrite it in a new way. i work now. thanks again ^^

Last edited by timian; 01-25-2010 at 14:36. Reason: fixed
timian is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-25-2010 , 15:33   Re: error 029: invalid expression, assumed zero
Reply With Quote #4

Quote:
Originally Posted by timian View Post
get_cvar_num("even_ajusthp");
You spelled adjust wrong, for the record. Might want to fix that if you're planning on submitting the plugin.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 07:19.


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