[Ajuda] Fini SaveFile !
#1

\/ Ajuda Fini estб dando Warnings \/

pawn Код:
C:\Documents and Settings\Emerson\Desktop\Teste\gamemodes\Drift.pwn(1120) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Emerson\Desktop\Teste\gamemodes\Drift.pwn(1130) : warning 213: tag mismatch
C:\Documents and Settings\Emerson\Desktop\Teste\gamemodes\Drift.pwn(1131) : warning 213: tag mismatch
C:\Documents and Settings\Emerson\Desktop\Teste\gamemodes\Drift.pwn(1132) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Emerson\Desktop\Teste\gamemodes\Drift.pwn(1148) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Emerson\Desktop\Teste\gamemodes\Drift.pwn(8140) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Warnings.
\/ Linhas 1120 atй 1165 \/

pawn Код:
public OnPlayerSpawn(playerid)
{
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
        if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
    }
    StopAudioStreamForPlayer(playerid);
    TextDrawDestroy(IntroText0);
    TextDrawDestroy(IntroText1);
    TextDrawShowForPlayer(playerid, TextDrawInfo[playerid]);
    SetPlayerScore(playerid, getScoreData(playerid));
    SetPlayerInterior(playerid, 0);
    Spawnou[playerid] = 1;
    if(VIP[playerid] == 1)
    {
        GameTextForPlayer(playerid,"~r~Voce e um~n~Player VIP~n~Aproveite",5000,3);
    }
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100.0);
    TextDrawShowForPlayer(playerid,txtTimeDisp);
    TextDrawShowForPlayer(playerid,txtDateDisp);
    TextDrawShowForPlayer(playerid, Ft[playerid]);
    TextDrawShowForPlayer(playerid, Box[playerid]);
    TextDrawShowForPlayer(playerid, TextWY0);
    TextDrawShowForPlayer(playerid, TextWY1);
    AntiDeAMX();
    new AtualNome[MAX_PLAYER_NAME],NovoNome[40];
    if(!Spawned[playerid])
    {
        Spawned[playerid] = true;
        new NickName[MAX_PLAYER_NAME],text[100],string[100];
        GetPlayerName(playerid,NickName,sizeof(NickName));
        format(text,sizeof(text),"/Equipes/%s.txt",NickName);
        if(!Fini_Exists(text))
        {
            Fini_Create(text);
            Fini_OpenFile(text);
            Fini_SetStr("RecrutaDeOutroPlayer",PlayerRecrutaDeOutroPlayer[playerid]);
            Fini_SetStr("NomeEquipe",PlayerEquipe[playerid]);
            Fini_SetStr("Tag",EquipeTag[playerid]);
            Fini_SetVal("Cor",CorEquipe[playerid]);
            Fini_SetFloat("SpawnX",Spawn[playerid][0]);
            Fini_SetFloat("SpawnY",Spawn[playerid][1]);
            Fini_SetFloat("SpawnZ",Spawn[playerid][2]);
            Fini_SetVal("Skin1",SkinEquipe[playerid][0]);
            Fini_SetVal("Skin2",SkinEquipe[playerid][1]);
            Fini_SetVal("Skin3",SkinEquipe[playerid][2]);
            Fini_SetVal("Cargo",RankPlayer[playerid]);
            Fini_SetBool("PlayerTemEquipe",PlayerTemEquipe[playerid]);
            Fini_SetBool("PlayerMembroEquipe",PlayerMembroEquipe[playerid]);
            Fini_SaveFile();
            Fini_CloseFile();
        }
        else
        {
            Fini_OpenFile(text);
            strmid(PlayerRecrutaDeOutroPlayer[playerid],Fini_GetStr("RecrutaDeOutroPlayer"),false,strlen(Fini_GetStr("RecrutaDeOutroPlayer")),MAX_PLAYER_NAME);
            strdel(PlayerRecrutaDeOutroPlayer[playerid],(strlen(PlayerRecrutaDeOutroPlayer[playerid])-2),(strlen(PlayerRecrutaDeOutroPlayer[playerid])));
            format(string,sizeof(string),"/Equipes/%s.txt",PlayerRecrutaDeOutroPlayer[playerid]);
            RankPlayer[playerid] = Fini_GetValue("Cargo");
            PlayerTemEquipe[playerid] = (Fini_GetBool("PlayerTemEquipe") == 1) ? true : false;
            PlayerMembroEquipe[playerid] = (Fini_GetBool("PlayerMembroEquipe") == 1) ? true : false;
            Fini_SaveFile();
            Fini_CloseFile();
            if(strlen(PlayerRecrutaDeOutroPlayer[playerid]) > 2)
            {
                if(Fini_Exists(string))
                {
                    Fini_OpenFile(string);
                    strmid(InGame[playerid][Equipe],Fini_GetStr("NomeEquipe"),false,strlen(Fini_GetStr("NomeEquipe")),MAX_PLAYER_NAME);
                    strmid(InGame[playerid][Tag],Fini_GetStr("Tag"),false,strlen(Fini_GetStr("Tag")),10);
                    InGame[playerid][Cor] = Fini_GetValue("Cor");
                    InGame[playerid][SpawnGameX] = Fini_GetFloat("SpawnX");
                    InGame[playerid][SpawnGameY] = Fini_GetFloat("SpawnY");
                    InGame[playerid][SpawnGameZ] = Fini_GetFloat("SpawnZ");
                    InGame[playerid][SkinEquipeGame1] = Fini_GetValue("Skin1");
                    InGame[playerid][SkinEquipeGame2] = Fini_GetValue("Skin2");
                    InGame[playerid][SkinEquipeGame3] = Fini_GetValue("Skin3");
                    Fini_SaveFile();
                    Fini_CloseFile();
                    SetPlayerColor(playerid,InGame[playerid][Cor]);
                    SetPlayerPos(playerid,InGame[playerid][SpawnGameX],InGame[playerid][SpawnGameY],InGame[playerid][SpawnGameZ]);
                    new Roll = random(2);
                    if(Roll == 0) SetPlayerSkin(playerid,InGame[playerid][SkinEquipeGame1]);
                    else if(Roll == 1) SetPlayerSkin(playerid,InGame[playerid][SkinEquipeGame1]);
                    else if(Roll == 2) SetPlayerSkin(playerid,InGame[playerid][SkinEquipeGame1]);
                    GetPVarString(playerid, "Nome Original", AtualNome, sizeof(AtualNome));
                    format(NovoNome,40,"[%s]%s",InGame[playerid][Tag],AtualNome);
                    SetPlayerName(playerid,NovoNome);
                    SetSpawnInfo(playerid, GetPlayerTeam(playerid),GetPlayerSkin(playerid),InGame[playerid][SpawnGameX],InGame[playerid][SpawnGameY],InGame[playerid][SpawnGameZ], 0, 0, 0, 0, 0, 0, 0);
                }
            }
        }
    }
    return 1;
}
\/ Linha 8121 atй 8143 \/

pawn Код:
stock SalvarTudo(playerid)
{
    new NickName[MAX_PLAYER_NAME],text[100];
    GetPVarString(playerid, "Nome Original", NickName, sizeof(NickName));
    format(text,sizeof(text),"/Equipes/%s.txt",NickName);
    Fini_OpenFile(text);
    Fini_SetStr("RecrutaDeOutroPlayer",PlayerRecrutaDeOutroPlayer[playerid]);
    Fini_SetStr("NomeEquipe",PlayerEquipe[playerid]);
    Fini_SetStr("Tag",EquipeTag[playerid]);
    Fini_SetVal("Cor",CorEquipe[playerid]);
    Fini_SetFloat("SpawnX",Spawn[playerid][0]);
    Fini_SetFloat("SpawnY",Spawn[playerid][1]);
    Fini_SetFloat("SpawnZ",Spawn[playerid][2]);
    Fini_SetVal("Skin1",SkinEquipe[playerid][0]);
    Fini_SetVal("Skin2",SkinEquipe[playerid][1]);
    Fini_SetVal("Skin3",SkinEquipe[playerid][2]);
    Fini_SetVal("Cargo",RankPlayer[playerid]);
    Fini_SetBool("PlayerTemEquipe",PlayerTemEquipe[playerid]);
    Fini_SetBool("PlayerMembroEquipe",PlayerMembroEquipe[playerid]);
    Fini_SaveFile();
    Fini_CloseFile();
    return 1;
}
Reply
#2

UP Ajuda aqui !
Reply
#3

Passa a linhas dos erros serб mais rбpido pra identifica !
Reply
#4

pawn Код:
C:\Documents and Settings\Emerson\Desktop\Coisas Pawno\Teste\gamemodes\Drift.pwn(1130) : warning 213: tag mismatch
C:\Documents and Settings\Emerson\Desktop\Coisas Pawno\Teste\gamemodes\Drift.pwn(1131) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Consegui tirar alguns Sobrou 2 . /\

Linhhas \/

pawn Код:
PlayerTemEquipe[playerid] = (Fini_GetBool("PlayerTemEquipe") == 1) ? true : false;
PlayerMembroEquipe[playerid] = (Fini_GetBool("PlayerMembroEquipe") == 1) ? true : false;
Reply
#5

Poder me explica porque tem "?"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)