#define savefile "Ranks/%s.ini"
public OnPlayerConnect(playerid)
{
new file[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),savefile,name);
if(!fexist(file))
{
dini_Create(file);
dini_IntSet(file,"Exp", 0);
dini_IntSet(file,"Level", 0);
}
if(fexist(file))
{
SendClientMessage(playerid,0xF0F8FFAA,"CHECK: Files Loaded!");
Exp[playerid] = dini_Int(file,"pExp");
Level[playerid] = dini_Int(file,"pLevel");
}
return 1;
}
public OnPlayerDisconnect(playerid)
{
new file[100];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),savefile,name);
dini_IntSet(file,"pExp",Exp[playerid]);
dini_IntSet(file,"pLevel",Level[playerid]);
return 1;
}
public OnPlayerConnect(playerid)
{
new file[40], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),savefile,name);
if(!DOF2_FileExists(file))
{
DOF2_CreateFile(file);
DOF2_SetInt(file,"Exp", 0);
DOF2_SetInt(file,"Level", 0);
DOF2_SaveFile();
}
else
{
SendClientMessage(playerid,0xF0F8FFAA,"CHECK: Files Loaded!");
Exp[playerid] = DOF2_GetInt(file,"pExp");
Level[playerid] = DOF2_GetInt(file,"pLevel");
}
return 1;
}
public OnPlayerDisconnect(playerid)
{
new file[40], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),savefile,name);
DOF2_SetInt(file,"pExp",Exp[playerid]);
DOF2_SetInt(file,"pLevel",Level[playerid]);
DOF2_SaveFile();
return 1;
}
C:\Users\Alex\Desktop\Servidor GTA SA\pawno\include\dof2.inc(1061) : warning 213: tag mismatch
C:\Users\Alex\Desktop\Servidor GTA SA\pawno\include\dof2.inc(1061) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Servidor GTA SA\filterscripts\expbar.pwn(240) : error 035: argument type mismatch (argument 3)
C:\Users\Alex\Desktop\Servidor GTA SA\filterscripts\expbar.pwn(241) : error 035: argument type mismatch (argument 3)
C:\Users\Alex\Desktop\Servidor GTA SA\filterscripts\expbar.pwn(339) : warning 203: symbol is never used: "DOF2_Exit"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
DOF2_GetInt(file,"Exp", 0);
DOF2_GetInt(file,"Level", 0);
Deu 2 erros quando fui compilar.
pawn Код:
pawn Код:
pawn Код:
|
DOF2_GetInt(file,"Exp");
DOF2_GetInt(file,"Level");
C:\Users\Alex\Desktop\Servidor GTA SA\pawno\include\dof2.inc(1061) : warning 213: tag mismatch
C:\Users\Alex\Desktop\Servidor GTA SA\pawno\include\dof2.inc(1061) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Servidor GTA SA\filterscripts\expbar.pwn(240) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Servidor GTA SA\filterscripts\expbar.pwn(241) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Servidor GTA SA\filterscripts\expbar.pwn(337) : warning 203: symbol is never used: "DOF2_Exit"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Warnings.
public OnPlayerConnect(playerid)
{
new file[40], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),savefile,name);
if(!DOF2_FileExists(file))
{
DOF2_CreateFile(file);
DOF2_SetInt(file,"Exp");
DOF2_SetInt(file,"Level");
DOF2_SaveFile();
}
else
{
SendClientMessage(playerid,0xF0F8FFAA,"CHECK: Files Loaded!");
Exp[playerid] = DOF2_GetInt(file,"pExp");
Level[playerid] = DOF2_GetInt(file,"pLevel");
}
return 1;
}
public OnPlayerDisconnect(playerid)
{
new file[40], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),savefile,name);
DOF2_SetInt(file,"pExp",Exp[playerid]);
DOF2_SetInt(file,"pLevel",Level[playerid]);
DOF2_SaveFile();
return 1;
}
public OnPlayerConnect(playerid)
{
new file[40], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),savefile,name);
if(!DOF2_FileExists(file))
{
DOF2_CreateFile(file);
DOF2_SetInt(file,"Exp",0);
DOF2_SetInt(file,"Level",1);
DOF2_SaveFile();
}
else
{
SendClientMessage(playerid,0xF0F8FFAA,"CHECK: Files Loaded!");
Exp[playerid] = DOF2_GetInt(file,"pExp");
Level[playerid] = DOF2_GetInt(file,"pLevel");
}
return 1;
}
public OnPlayerDisconnect(playerid)
{
new file[40], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),savefile,name);
DOF2_SetInt(file,"pExp",Exp[playerid]);
DOF2_SetInt(file,"pLevel",Level[playerid]);
DOF2_SaveFile();
return 1;
}
[ ]
Exp = 185124
[ini]
Level = 185124
C:\Users\Alex\Desktop\Servidor GTA SA\pawno\include\dof2.inc(1061) : warning 213: tag mismatch
C:\Users\Alex\Desktop\Servidor GTA SA\pawno\include\dof2.inc(1061) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Servidor GTA SA\filterscripts\expbar.pwn(337) : warning 203: symbol is never used: "DOF2_Exit"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
C:\Users\Alex\Desktop\Servidor GTA SA\pawno\include\dof2.inc(1061) : warning 213: tag mismatch
C:\Users\Alex\Desktop\Servidor GTA SA\pawno\include\dof2.inc(1061) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.