[Ajuda] Erro [avisos na conta player]
#1

Boa Tarde..

estou tentando codar um /conta com as informaзхes do players avisos mortes etc.. mais agora quando fui fazer o avisos do player ele deu este erro bizarro nгo sei bem oque eh.. pois a linha esta certa pelo meu ver....


CODIGO:

pawn Code:
format(conta, sizeof(conta), "{F63D00}•\t{708090}Avisos: {F63D00}%d %s\n\n", ContaPlayer[playerid][Avisos] = DOF2_GetInt(StringRegistro, "Avisos"));
strcat(strc, conta);

ERRO:
pawn Code:
(3588) : error 033: array must be indexed (variable "Avisos")

agradeзo a quem ajudar..
Reply
#2

Code:
ContaPlayer[playerid][Avisos] = DOF2_GetInt(StringRegistro); 

format(conta, sizeof(conta), "{F63D00}•\t{708090}Avisos: {F63D00}%d %s\n\n", ContaPlayer[playerid][Avisos], "Avisos"));
e vc tinha eskecido de fechar o parenteses do StringRegistro
Reply
#3

ERROS:


pawn Code:
3588) : error 033: array must be indexed (variable "Avisos")
3589) : error 033: array must be indexed (variable "Avisos")
3589) : error 029: invalid expression, assumed zero
3589) : warning 215: expression has no effect
Reply
#4

Vocк criou a variбvel Avisos , na enum ContaPlayer?
Reply
#5

eu crio ela e da isso...



ERROS:

pawn Code:
(299) : error 021: symbol already defined: "Avisos"
(3589) : error 032: array index out of bounds (variable "ContaPlayer")
(3590) : error 032: array index out of bounds (variable "ContaPlayer")
(3590) : error 029: invalid expression, assumed zero
(3590) : warning 215: expression has no effect
(4416) : error 028: invalid subscript (not an array or too many subscripts): "Avisos"
(4416) : warning 215: expression has no effect
(4416) : error 001: expected token: ";", but found "]"
(4416) : error 029: invalid expression, assumed zero
(4416) : fatal error 107: too many error messages on one line

LINHAS:

pawn Code:
Avisos[MAX_PLAYERS],

ContaPlayer[playerid][Avisos] = DOF2_GetInt(StringRegistro);
format(conta, sizeof(conta), "{F63D00}•\t{708090}Avisos: {F63D00}%d %s\n\n", ContaPlayer[playerid][Avisos], "Avisos"));

CMD aviso:

if(Avisos[ID] == 1)
Reply
#6

ja existe uma variavel chamada Avisos
Reply


Forum Jump:


Users browsing this thread: