26.06.2015, 12:59
Quote:
Well theres your problem...
You're not using the correct syntax.... PHP код:
|
Edit:
You realize
Quote:
This is the line : if ((SkinID < 0) || (SkinID > 299) || IsInvalidSkin(SkinID))
|
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 < 0) Lets called that A
if(SkinID > 299) Lets 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
}