Error.
#1

Im trying to make an anti teleport hack for anticheat.It works but even if a player si logged in it shows the WARNING.I wanted to put a condition to show the message only if the player is logged in.i Tried,but i now i get :

error:
PHP код:
error 028invalid subscript (not an array or too many subscripts): "IsLoggedIn"
(4396) : warning 215expression has no effect
(4396) : error 001expected token";"but found "]"
error 029invalid expressionassumed zero
fatal error 107too many error messages on one line 
All on same line: 4396 :

PHP код:
if((distanta[i] > 65.0) && IsLoggedIn[i] != true// IsLoggedIn 
i tried with
PHP код:
 if((distanta[i] > 65.0) && (IsLoggedIn[i] != true)) 
// IsLoggedIn
still not working
Reply
#2

You need to define it after the player is logged in/registered.
Reply
#3

On other commands,the IsLoggedIn works.
Reply
#4

Show me how it is being used in other commands.

Edit:
PHP код:
if(distanta[i] > 65.0 && IsLoggedIn[i] != true
This will do it. Sorry, I was checking it in the wrong way..
Reply
#5

[I]Try changing :

Quote:

if(distanta[i] > 65.0 && IsLoggedIn[i] != true)

To :

Quote:

if(distanta > 65.0 && IsLoggedIn(i) != true)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)