[Ajuda] Warning 213
#1

Estou com um problema de warning que й esse:

Warning:
PHP код:
C:\Users\Erickson\Desktop\brvgm.pwn(3999) : warning 213tag mismatch 
Linha:
PHP код:
if(chat[i] == true

Se alguйm souber o problema me ajuda.
Reply
#2

O que me parece ser й que estб variбvel nгo й booleana.

Deve se usar a tag bool na frente da definiзгo da variбvel, assim:

pawn Код:
new bool:MinhaVariavel;

MinhaVariavel = true;

if(MinhaVariavel == true)
{
    // ...
}
Leia mais: https://sampforum.blast.hk/showthread.php?tid=235924
Reply
#3

Nгo funcionou, em "new chat[MAX_PLAYERS] = 0;" eu mudei para "new chat[MAX_PLAYERS] = 0;", tem outra soluзгo ?
Reply
#4

Outra? Sу hб uma soluзгo para isto o.o'

pawn Код:
new bool:chat[MAX_PLAYERS];
PS: Nгo й possнvel igualar uma array desta forma, pois ela deve ser totalmente utilizada se for igualada a algum valor!

Este exemplo nгo irб compilar, pois a array nгo foi totalmente igualada.

pawn Код:
new Text[3][22] =
{
    "Noobzada AHEUHAUE", // Text[0]
    "Aqui й fera manolo!" // Text[1]
}
Nesse caso basta adicionar mais uma igualaзгo ou diminuir o tamanho dela.

Fiquei com trauma do verbo 'Igualar'[

Leia mais: https://sampforum.blast.hk/showthread.php?tid=235924
Reply
#5

PHP код:
if(chat[i] == 1
??
Reply
#6

Vlw mano, funcionou, deu pra perceber que vocк й fera, rsrsrsrs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)