SA-MP Forums Archive
[Ajuda] 1 Erros alguйm ajuda? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] 1 Erros alguйm ajuda? (/showthread.php?tid=389446)



1 Erros alguйm ajuda? - FleXx_01 - 02.11.2012

C:\Users\Familia\Desktop\Testes\Server\gamemodes\U ntitled.pwn(4 : warning 201: redefinition of constant/macro (symbol "pInfo")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

Alguйm ae pode me ajudar, estarei mt agradecido pra quem ajudar, vlw ;]



Cуdigo linha 48
pawn Код:
enum pInfo
{
    pSenha,
    pScore,
    pDinheiro,
}



Re: 1 Erros alguйm ajuda? - zSuYaNw - 02.11.2012

Jб existe um numerador chamado pInfo.

Renomeie por outro ou exclua-o.


Re: 1 Erros alguйm ajuda? - FleXx_01 - 02.11.2012

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
Jб existe um numerador chamado pInfo.

Renomeie por outro ou exclua-o.
renomeei e olha no que deu '-'
C:\Users\Familia\Desktop\Testes\Server\gamemodes\U ntitled.pwn(201) : warning 213: tag mismatch
C:\Users\Familia\Desktop\Testes\Server\gamemodes\U ntitled.pwn(437) : warning 213: tag mismatch
C:\Users\Familia\Desktop\Testes\Server\gamemodes\U ntitled.pwn(439) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

se eu excluir eu fico sem sistema de login kk


Re: 1 Erros alguйm ajuda? - zSuYaNw - 02.11.2012

Poste as linhas ._.


Re: 1 Erros alguйm ajuda? - jpeg - 02.11.2012

pawn Код:
enum pInfo
{
    pSenha,
    pScore,
    pDinheiro
}
sem vнrgula no final de pDinheiro.


Re: 1 Erros alguйm ajuda? - FleXx_01 - 02.11.2012

pawn Код:
//Linha 201
    INI_WriteInt("Score",PlayerInfo[playerid][pScore]);
//Linha 437
                INI_ReadString(PlayerInfo[playerid][pSenha],"Senha",20);
//Linha 439
                if(strcmp(inputtext,PlayerInfo[playerid][pSenha],false)) {
Ta ai as linhas, alguйm consegue ajudar ? :S


Re: 1 Erros alguйm ajuda? - zSuYaNw - 02.11.2012

Vocк estб usando os parвmetros incorretos:

INI_WriteInt(CONTA, LINHA, VALOR);
INI_ReadString(DESTINO, LINHA);

*CONTA:
- Aonde fica a conta do player, por exemplo "/Contas/Nome_DoPlayer.ini"

*LINHA:
- A Tag que vamos manipular, por exemplo "Score"

*VALOR:
- O valor que iremos atribuir.

*DESTINO:
- A funзгo INI_ReadString, necessita armazenar o valor em uma array:
pawn Код:
new str[30];
INI_ReadString(str, "Password", sizeof(str));
printf(str);



Re: 1 Erros alguйm ajuda? - FleXx_01 - 02.11.2012

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
Vocк estб usando os parвmetros incorretos:

INI_WriteInt(CONTA, LINHA, VALOR);
INI_ReadString(DESTINO, LINHA);

*CONTA:
- Aonde fica a conta do player, por exemplo "/Contas/Nome_DoPlayer.ini"

*LINHA:
- A Tag que vamos manipular, por exemplo "Score"

*VALOR:
- O valor que iremos atribuir.

*DESTINO:
- A funзгo INI_ReadString, necessita armazenar o valor em uma array:
pawn Код:
new str[30];
INI_ReadString(str, "Password", sizeof(str));
printf(str);
Vou retirar este sistema de login, acabei de achar milhares de bugs nele D:, muito obrigado ai pela ajuda, se tiver alguma forma para min te agradecer... Obrigado mesmo...


Re: 1 Erros alguйm ajuda? - zSuYaNw - 02.11.2012

Ah, sу para complementar,
Se saber o bбsico de inglкs: https://sampforum.blast.hk/showthread.php?tid=244223


Re: 1 Erros alguйm ajuda? - FleXx_01 - 02.11.2012

Vlw ;]