SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 24/04/2015, 04:30 PM   #1
Tiger157000
Big Clucker
 
Join Date: Mar 2015
Posts: 84
Reputation: 0
Default Erro [avisos na conta player]

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..
Tiger157000 is offline   Reply With Quote
Old 24/04/2015, 04:49 PM   #2
[BC]Vinny
Big Clucker
 
Join Date: Sep 2012
Posts: 97
Reputation: 5
Default Re: Erro [avisos na conta player]

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
[BC]Vinny is offline   Reply With Quote
Old 24/04/2015, 05:00 PM   #3
Tiger157000
Big Clucker
 
Join Date: Mar 2015
Posts: 84
Reputation: 0
Default Re: Erro [avisos na conta player]

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
Tiger157000 is offline   Reply With Quote
Old 24/04/2015, 05:04 PM   #4
DiegoLeo
Big Clucker
 
Join Date: Dec 2013
Posts: 132
Reputation: 11
Default Re: Erro [avisos na conta player]

Você criou a variável Avisos , na enum ContaPlayer?
__________________
DiegoLeo is offline   Reply With Quote
Old 24/04/2015, 05:12 PM   #5
Tiger157000
Big Clucker
 
Join Date: Mar 2015
Posts: 84
Reputation: 0
Default Re: Erro [avisos na conta player]

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)
Tiger157000 is offline   Reply With Quote
Old 24/04/2015, 07:11 PM   #6
[BC]Vinny
Big Clucker
 
Join Date: Sep 2012
Posts: 97
Reputation: 5
Default Re: Erro [avisos na conta player]

ja existe uma variavel chamada Avisos
[BC]Vinny is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Conta por cada player Tugamars Português/Portuguese 6 07/12/2013 03:27 PM
[Ajuda] Alterar um valor na conta sem o player tar online Chazika Português/Portuguese 18 27/10/2013 06:12 PM
[Ajuda] Password some da conta do player gR92 Português/Portuguese 1 19/10/2012 10:20 PM
[Ajuda] Erro na conta Tijoka Português/Portuguese 0 30/04/2011 11:44 PM
[AJUDA] Salvar Deaths e Kills na conta do player PawninG Português/Portuguese 5 01/10/2010 02:25 PM


All times are GMT. The time now is 06:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.