15.08.2011, 20:34
Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(604) : error 017: undefined symbol "dini_Exists" D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(606) : error 017: undefined symbol "dini_Int" D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(621) : error 017: undefined symbol "i" D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(622) : error 017: undefined symbol "dini_Exists" D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(624) : error 017: undefined symbol "dini_IntSet" D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(936) : warning 202: number of arguments does not match definition D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(982) : error 017: undefined symbol "playerid" D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(987) : error 017: undefined symbol "dini_Exists" D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(989) : error 017: undefined symbol "dini_Create" D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(992) : error 017: undefined symbol "dini_IntSet" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Errors.
PHP код:
new PlayerFile[64];
format(PlayerFile, sizeof(PlayerFile),"%s.ini",GetName(playerid));
if(dini_Exists(PlayerFile))
{
SawnoffShotgunSkill[playerid] = dini_Int(PlayerFile, "SawnoffShotgun");
}
GetPlayerName(playerid, gPlayerName[playerid], MAX_PLAYER_NAME);
if(fexist(getINI(playerid))) ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""RED"This nickname is registered!",""WHITE"Type your password below to login.","Login","Quit");
else ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""RED"Hi! You are new here, you have to register your account!",""WHITE"Type your password below to register a new account.","Register","Quit");
return 1;
}
public OnPlayerDisconnect(playerid, reason) {
new PlayerFile[64];
format(PlayerFile, sizeof(PlayerFile),"%s.ini",GetName(i));
if(dini_Exists(PlayerFile))
{
dini_IntSet(PlayerFile, "SawnoffShotgun",SawnoffShotgunSkill[playerid]);
}
PHP код:
forward OnSkillLevelUpdate();
public OnSkillLevelUpdate()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SawnoffShotgunSkill[i]+=5; //Increase skill by 5 points
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,SawnoffShotgunSkill[i]);
//Now save skill to file
new PlayerFile[64];
format(PlayerFile, sizeof(PlayerFile),"%s.ini",GetName(i));
if(!dini_Exists(PlayerFile))
{
dini_Create(PlayerFile);
}
dini_IntSet(PlayerFile, "SawnoffShotgun", SawnoffShotgunSkill[i]);
}
}
return 1;
}