SA-MP Forums Archive
[Ajuda] erro - 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] erro (/showthread.php?tid=383590)



erro - lucaskill66 - 07.10.2012

Alguйm por favor poderia ajudar a resolver esse erro.

Код:
C:\Users\Lucas\Desktop\Construзгo - RP\gamemodes\Construзгo.pwn(209) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
public OnPlayerUpdate(playerid)
{
    new arquivo[40], playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(arquivo, sizeof(arquivo), "Contas/%s", playername);
    if(DOF2_FileExists(arquivo))
    {
        DOF2_SetInt(arquivo, "Organizaзгo", PlayerInfo[playerid][pOrganizacao]);
        DOF2_SetInt(arquivo, "Cargo", PlayerInfo[playerid][pCargo]);
    }
    else
    {
        DOF2_CreateFile(arquivo)
        DOF2_SetInt(arquivo, "Organizaзгo", PlayerInfo[playerid][pOrganizacao]);//erro ta acusando nessa linha
        DOF2_SetInt(arquivo, "Cargo", PlayerInfo[playerid][pCargo]);
    }
    return 1;
}



Re: erro - Maklister - 07.10.2012

pawn Код:
public OnPlayerUpdate(playerid)
{
    new arquivo[40], playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(arquivo, sizeof(arquivo), "Contas/%s", playername);
    if(DOF2_FileExists(arquivo))
    {
        DOF2_SetInt(arquivo, "Organizaзгo", PlayerInfo[playerid][pOrganizacao]);
        DOF2_SetInt(arquivo, "Cargo", PlayerInfo[playerid][pCargo]);
    }
    else
    {
        DOF2_CreateFile(arquivo);
        DOF2_SetInt(arquivo, "Organizaзгo", PlayerInfo[playerid][pOrganizacao]);//erro ta acusando nessa linha
        DOF2_SetInt(arquivo, "Cargo", PlayerInfo[playerid][pCargo]);
    }
    return 1;
}
Voce esqueceu um ;