Help some warning?? Dont know how fix. :(
#1

PHP код:
THIS the line--
if(
Logged[playerid] == true
And WARNING:
PHP код:
(1139) : warning 213tag mismatch 
Reply
#2

How is that variable declared?
Reply
#3

Its should be declared as
PHP код:
bool:Logged[MAX_PLAYERS
i guess you declared it as
PHP код:
Logged[MAX_PLAYERS
It still can be used like that, but not using true/false
1/0
Reply
#4

<False information>
Reply
#5

PHP код:
new
    
noooc 0,
    
Logged[MAX_PLAYERS],
    
gOocMAX_PLAYERS ]

iuse like this
Reply
#6

Knew it, it should be like this
PHP код:
new
    
noooc 0,
    
bool:Logged[MAX_PLAYERS],
    
gOocMAX_PLAYERS ]

Reply
#7

PHP код:
public OnPlayerConnect(playerid)
{
    
gOocplayerid ] = 0Loggedplayerid ] = 0aDutyplayerid ] = 0
And how i change this W?
Reply
#8

Make it false


By the way, you could also keep it Logged[MAX_PLAYERS] but in check's you should use
PHP код:
if(Logged[MAX_PLAYERS] == 1
Not true/false, just don't mix bools with integers
Reply
#9

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Make it false


By the way, you could also keep it Logged[MAX_PLAYERS] but in check's you should use
PHP код:
if(Logged[MAX_PLAYERS] == 1
Not true/false, just don't mix bools with integers
PHP код:
array index out of bounds (variable "Logged"
Reply
#10

Huh? try to find all "Logged" in your script, all must be true/false
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)