error
#8

Quote:
Originally Posted by Prokill911
Посмотреть сообщение
Well theres your problem...

You're not using the correct syntax....
PHP код:
if(IsInvalidSkin(skinID) || (SkinID || SkinID 299)) { 
Try that
ABOVE ^



Edit:

You realize
Quote:
Originally Posted by RuNBoY
Посмотреть сообщение
This is the line : if ((SkinID < 0) || (SkinID > 299) || IsInvalidSkin(SkinID))
The way that code reads is as followed

PHP код:
if((SkinID 0)
The above means..
If 
SkinID IS LOWER Than 0 
|| = OR
SkinID 299
If SkinID IS GREATER Than 299
|| = OR
IsInvalidSkin(SkinID))
So lets put that all together
if((SkinID IS LOWER Than 0) OR (SkinID Is GREAT Than 299) OR IsInvalidSkin(skinid)
Firstly...
You can't do this...
if((SkinID < 0) || (SkinID > 299)  
That'
s an INCORRECT Syntax statement.. == RETURNS ERRORS...
You're trying to enclose more statements then are required/needed
When using the ** || ** OR statement...
You'
re asking a question
if(SkinID 0Lets called that A
if(SkinID 299Lets call that B
So
...
If(
A returns true... || B returns True) { 
THIS STATEMENT IS CALLED
}
So Without all the syntax
if(A returns true OR B returns True) {
Does this

Reply


Messages In This Thread
error - by RuNBoY - 26.06.2015, 12:43
Re: error - by RuNBoY - 26.06.2015, 12:49
Re: error - by Prokill911 - 26.06.2015, 12:50
Re: error - by RuNBoY - 26.06.2015, 12:54
Re: error - by Alex Magaсa - 26.06.2015, 12:54
Re: error - by Prokill911 - 26.06.2015, 12:55
Re: error - by RuNBoY - 26.06.2015, 12:58
Re: error - by Prokill911 - 26.06.2015, 12:59
Re: error - by RuNBoY - 26.06.2015, 13:02
Re: error - by Prokill911 - 26.06.2015, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)