[AJUDA]Salvar Nivel De Procura no GF
#2

Huuuuum BRASIL PLAY FOREVER DETECTED =P


Isto deve resolver o seu problema , coloque:

pawn Код:
//No Topo do GM:


new NivelProcurado[10], texto[30];


//No OnPlayerSpawn:


new PlayerN[MAX_PLAYER_NAME],ProcuradeX[10];
GetPlayerName(playerid, PlayerN, sizeof(PlayerN));
format(texto, 30, "%s.txt", PlayerN);
new File:Procuradaum = fopen(texto, io_read);
fread(Procuradaum, ProcuradeX);
fclose(Procuradaum);
WantedLevel[playerid] = strval(ProcuradeX);



//No OnPlayerDisconnect:


new PlayerN[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerN, sizeof(PlayerN));
format(texto, 30, "%s.txt", PlayerN);
new File:Procuradaum = fopen(texto, io_write);
format(NivelProcurado, 10, "%d", WantedLevel[playerid]);
fwrite(Procuradaum, NivelProcurado);
fclose(Procuradaum);

Espero ter ajudado
Reply


Messages In This Thread
[AJUDA]Salvar Nivel De Procura no GF - by Power_GamerX - 22.02.2011, 21:14
Re: [AJUDA]Salvar Nivel De Procura no GF - by rjjj - 22.02.2011, 21:24
Re: [AJUDA]Salvar Nivel De Procura no GF - by Power_GamerX - 22.02.2011, 21:25
Re: [AJUDA]Salvar Nivel De Procura no GF - by ViniBorn - 22.02.2011, 21:30
Re: [AJUDA]Salvar Nivel De Procura no GF - by Power_GamerX - 22.02.2011, 21:32
Re: [AJUDA]Salvar Nivel De Procura no GF - by Power_GamerX - 22.02.2011, 21:42
Re: [AJUDA]Salvar Nivel De Procura no GF - by Power_GamerX - 22.02.2011, 23:13
Re: [AJUDA]Salvar Nivel De Procura no GF - by Gabriel6 - 22.02.2011, 23:15
Re: [AJUDA]Salvar Nivel De Procura no GF - by Power_GamerX - 22.02.2011, 23:17
Re: [AJUDA]Salvar Nivel De Procura no GF - by Gabriel6 - 22.02.2011, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)