SA-MP Forums Archive
[Ajuda] Alguйm pode me ajudar? - 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] Alguйm pode me ajudar? (/showthread.php?tid=543042)



Alguйm pode me ajudar? - [S]Kimimaro - 24.10.2014

To tentando compilar essa birosca mais eu nгo acho o erro (sou aprendiz em pawn ainda)

DA ESSE ERRO:

Quote:

C:\Users\Poseidon\Desktop\SERVER\filterscripts\Adm in.pwn(81) : warning 217: loose indentation
C:\Users\Poseidon\Desktop\SERVER\filterscripts\Adm in.pwn(84) : warning 225: unreachable code
C:\Users\Poseidon\Desktop\SERVER\filterscripts\Adm in.pwn(84) : warning 217: loose indentation
C:\Users\Poseidon\Desktop\SERVER\filterscripts\Adm in.pwn(87) : error 012: invalid function call, not a valid address
C:\Users\Poseidon\Desktop\SERVER\filterscripts\Adm in.pwn(87) : warning 215: expression has no effect
C:\Users\Poseidon\Desktop\SERVER\filterscripts\Adm in.pwn(87) : error 001: expected token: ";", but found ")"
C:\Users\Poseidon\Desktop\SERVER\filterscripts\Adm in.pwn(87) : error 029: invalid expression, assumed zero
C:\Users\Poseidon\Desktop\SERVER\filterscripts\Adm in.pwn(87) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

LINHAS:

Quote:

public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), Players, Nome);
if(!DOF2::FileExists(String))
{
format(String, sizeof(String), "\n{7FFFD4}Nick: {1E90FF}%s Nгo Registrado\n\n{FFFFFF} Digite Uma Senha Para Registrar Sua Conta\n", Nome);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Sistema de Registro", String, "Registrar", "Cancelar");
}
else format(String, sizeof(String), "\n{7FFFD4}Nick: {1E90FF}%s Registrado\n\n{FFFFFF} Digite sua Senha Corretamente para Logar\n", Nome),
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Sistema de Login", String, "Logar", "Cancelar");
return true;


PInfo[playerid][GAdmin] = 0;
PInfo[playerid][SpecOn] = 0;

format(gstring, sizeof(gstring), Players, Nome(playerid));
PInfo[playerid][GAdmin] = dini_Int(gstring, "AdminL");
return 1;
}




Re: Alguйm pode me ajudar? - PT - 24.10.2014

pawn Код:
public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(String, sizeof(String), Players, Nome);
    if(!DOF2::FileExists(String))
    {
        format(String, sizeof(String), "\n{7FFFD4}Nick: {1E90FF}%s Nгo Registrado\n\n{FFFFFF} Digite Uma Senha Para Registrar Sua Conta\n", Nome);
        ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Sistema de Registro", String, "Registrar", "Cancelar");
    }
    else
    {
        format(String, sizeof(String), "\n{7FFFD4}Nick: {1E90FF}%s Registrado\n\n{FFFFFF} Digite sua Senha Corretamente para Logar\n", Nome);
        ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Sistema de Login", String, "Logar", "Cancelar");
    }

    PInfo[playerid][GAdmin] = 0;
    PInfo[playerid][SpecOn] = 0;

    format(gstring, sizeof(gstring), Players, Nome(playerid));
    PInfo[playerid][GAdmin] = dini_Int(gstring, "AdminL");
    return 1;
}