Raised This Month: $ Target: $400
 0% 

need help with 4 errors..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 06-23-2009 , 22:54   need help with 4 errors..
Reply With Quote #1

my errors have been resolved, thanks!
__________________
+|- KARMA Respectively


Last edited by HLM; 06-24-2009 at 15:47.
HLM is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-24-2009 , 01:12   Re: need help with 4 errors..
Reply With Quote #2

Wow . . . You really need to read some tutorials.

Go through your code and see if it fits the pattern:
PHP Code:
if( is_user_alive(id) )
{
    
// Do stuff for if the user is alive
}
else
{
    
// Do stuff here for if the user is dead

str_to_num() returns an integer so you cannot compare it to a string ("1"). Also, str_to_num("on") will probably return 0 as will str_to_num("off").

Braces, Brackets, and Parentheses always come in pairs.
__________________

Last edited by fysiks; 06-24-2009 at 01:25. Reason: Add example
fysiks is offline
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 06-24-2009 , 01:39   Re: need help with 4 errors..
Reply With Quote #3

Okay, so str_to_num is out of the question... I completely reworked the code in hopes of a better build, now using arguments.. I think I MIGHT be closer..
__________________
+|- KARMA Respectively


Last edited by HLM; 06-24-2009 at 03:39.
HLM is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-24-2009 , 18:43   Re: need help with 4 errors..
Reply With Quote #4

It's bad forum etiquette to delete your original post, BTW.
__________________
fysiks is offline
Reply



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 15:36.


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