Raised This Month: $ Target: $400
 0% 

invalid expression :D


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 06-09-2005 , 02:46   invalid expression :D
Reply With Quote #1

Code:
public infect() {     new players[32], all_num     get_players(players,all_num, "a")     for (new id=1; id<=32; id++) {         new dmghp = get_cvar_num("air_damagehp")     new health = get_user_health(id)         if(!hasoxygentank[id]) & (airinfect == 1)     {     set_user_health(id, health - dmghp )     }     if ( health - dmghp <= 0 )     {     client_print(id,print_chat,"You have just died from the infectious air.")     client_print(id,print_chat,"Remember to buy an Oxygen Tank next round :D")         }     } }

this 2 lines

Code:
    if(!hasoxygentank[id]) & (airinfect == 1)     {

errors

Code:
/home/groups/amxmodx/tmp/nVge9qAd.sma(197) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp/nVge9qAd.sma(197 -- 198) : error 029: invalid expression, assumed zero
and will that part of the code work? its suppose to minus a defined amount hp on everyone unless he has an oxygen tank
__________________
Plugins:
none

n0obie4life is offline
 


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 16:50.


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