02.05.2012, 15:49
Й agora compilou legal, mas ainda mostra uns warnings:
Veja como estб:
pawn Код:
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.
pawn Код:
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;
}