19.04.2011, 14:23
pawn Код:
forward SalvarInformacoes(playerid);
public SalvarInformacoes(playerid)
{
new pNome[MAX_PLAYER_NAME], arquivo[40];
GetPlayerName(playerid, pNome, sizeof(pNome));
format(arquivo, sizeof(arquivo), "%s Info.txt", pNome);
if(!Fini_Exists(arquivo)) return Fini_Create(arquivo); SalvarInformacoes(playerid);
Fini_OpenFile(arquivo); //abrir o arquivo!
{
Fini_SetVal("dinheiro",GetPlayerMoney(playerid)); //setar Dinheiro=DinheirodOPlayer no arquivo
}
Fini_SaveFile(); //salvar o arquivo(sу salva quando usas Set na funзгo acima)
Fini_CloseFile(); //fechar o arquivo apуs usa-lo
return 1;
}
forward CarregarInformacoes(playerid);
public CarregarInformacoes(playerid)
{
new pNome[MAX_PLAYER_NAME], arquivo[40];
GetPlayerName(playerid, pNome, sizeof(pNome));
format(arquivo, sizeof(arquivo), "%s Info.txt", pNome);
if(!Fini_Exists(arquivo)) return Fini_Create(arquivo);
Fini_OpenFile(arquivo); //abrir o arquivo!
{
GivePlayerMoney(playerid, Fini_GetValue("dinheiro")); //setar Dinheiro=DinheirodOPlayer no arquivo
}
Fini_SaveFile(); //salvar o arquivo(sу salva quando usas Set na funзгo acima)
Fini_CloseFile(); //fechar o arquivo apуs usa-lo
return 1;
}
Код:
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(242) : warning 202: number of arguments does not match definition C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(257) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
Esta errado esse code ??