public SalvarConta(playerid)
{
GetPlayerName(playerid, Name, sizeof(Name));
format(arquivo, sizeof(arquivo), ContasPlayers, Name);
if(!dini_Exists(arquivo)) dini_Create(arquivo);
dini_IntSet(arquivo, "Dinheiro", Jogador[playerid][pGrana]);
return 0;
}
public SalvarConta(playerid)
{
GetPlayerName(playerid, Name, sizeof(Name));
format(arquivo, sizeof(arquivo), ContasPlayers, Name);
if(!DOF2_FileExists(arquivo)) DOF2_CreateFile(arquivo);
DOF2_SetInt(arquivo, "Dinheiro", Jogador[playerid][pGrana]);
DOF2_SaveFile();
return 0;
}
public SalvarConta(playerid)
{
GetPlayerName(playerid, Name, sizeof(Name));
format(arquivo, sizeof(arquivo), ContasPlayers, Name);
if(!DOF2_FileExists(arquivo))
{
DOF2_CreateFile(arquivo);
DOF2_SetInt(arquivo, "Dinheiro", Jogador[playerid][pGrana]);
DOF2_SaveFile();
}
return 0;
}
C:\Documents and Settings\mau\Desktop\Server Construзao\gamemodes\RPG.pwn(263) : error 036: empty statement
C:\Documents and Settings\mau\Desktop\Server Construзao\gamemodes\RPG.pwn(264) : error 035: argument type mismatch (argument 3)
if(DOF2_CreateFile(arquivo));
DOF2_SetInt(arquivo, "Senha", inputtext);
DOF2_SetInt(arquivo, "Senha", strval(inputtext));
Usa strval
pawn Код:
|
C:\Documents and Settings\mau\Desktop\Server Construзao\gamemodes\RPG.pwn(263) : error 036: empty statement
if(DOF2_CreateFile(arquivo));
forward CarregarConta(playerid);
public CarregarConta(playerid)
{
GetPlayerName(playerid, Name, sizeof(Name));
format(arquivo, sizeof(arquivo), ContasPlayers, Name);
if(!DOF2_FileExists(arquivo)) return 0x1;
PlayerInfo[playerid][pLevel] = DOF2_SetInt(arquivo, "Level");
PlayerInfo[playerid][pResp] = DOF2_SetInt(arquivo, "Respeito");
PlayerInfo[playerid][pTuto] = DOF2_SetInt(arquivo, "Tutorial");
PlayerInfo[playerid][pAdmin] = DOF2_SetInt(arquivo, "Admin");
PlayerInfo[playerid][pAviso] = DOF2_SetInt(arquivo, "Avisos");
return 0;
}
C:\Documents and Settings\mau\Desktop\Server Construзao\gamemodes\RPG.pwn(365) : warning 202: number of arguments does not match definition
C:\Documents and Settings\mau\Desktop\Server Construзao\gamemodes\RPG.pwn(366) : warning 202: number of arguments does not match definition
C:\Documents and Settings\mau\Desktop\Server Construзao\gamemodes\RPG.pwn(367) : warning 202: number of arguments does not match definition
C:\Documents and Settings\mau\Desktop\Server Construзao\gamemodes\RPG.pwn(368) : warning 202: number of arguments does not match definition
C:\Documents and Settings\mau\Desktop\Server Construзao\gamemodes\RPG.pwn(369) : warning 202: number of arguments does not match definition