SetPlayerSkill!
#14

Код:
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.
Hell, I don't use DINI, I USE INI!!! Anybody fix them please?

PHP код:
new PlayerFile[64];
        
format(PlayerFilesizeof(PlayerFile),"%s.ini",GetName(playerid));
        if(
dini_Exists(PlayerFile))
        {
        
SawnoffShotgunSkill[playerid] = dini_Int(PlayerFile"SawnoffShotgun");
        }
        
        
GetPlayerName(playeridgPlayerName[playerid], MAX_PLAYER_NAME);
        if(
fexist(getINI(playerid))) ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,""RED"This nickname is registered!",""WHITE"Type your password below to login.","Login","Quit");
        else 
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_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(playeridreason) {
        new 
PlayerFile[64];
        
format(PlayerFilesizeof(PlayerFile),"%s.ini",GetName(i));
        if(
dini_Exists(PlayerFile))
        {
            
dini_IntSet(PlayerFile"SawnoffShotgun",SawnoffShotgunSkill[playerid]);
        } 
PHP код:
forward OnSkillLevelUpdate();
public 
OnSkillLevelUpdate()
{
    for(new 
0MAX_PLAYERSi++)
    {
        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(PlayerFilesizeof(PlayerFile),"%s.ini",GetName(i));
            if(!
dini_Exists(PlayerFile))
            {
                
dini_Create(PlayerFile);
            }
            
dini_IntSet(PlayerFile"SawnoffShotgun"SawnoffShotgunSkill[i]);
        }
    }
    return 
1;

Reply


Messages In This Thread
SetPlayerSkill! - by samtey - 15.08.2011, 16:02
Re: SetPlayerSkill! - by Darnell - 15.08.2011, 16:19
AW: SetPlayerSkill! - by samtey - 15.08.2011, 16:26
Re: SetPlayerSkill! - by Darnell - 15.08.2011, 16:36
Re: SetPlayerSkill! - by playbox12 - 15.08.2011, 16:50
AW: SetPlayerSkill! - by samtey - 15.08.2011, 17:15
Re: AW: SetPlayerSkill! - by Libra_PL - 15.08.2011, 17:21
AW: SetPlayerSkill! - by samtey - 15.08.2011, 17:29
Re: SetPlayerSkill! - by Libra_PL - 15.08.2011, 17:45
AW: SetPlayerSkill! - by samtey - 15.08.2011, 18:38
Re: SetPlayerSkill! - by Flo_White - 15.08.2011, 19:03
AW: SetPlayerSkill! - by samtey - 15.08.2011, 19:48
Re: SetPlayerSkill! - by Darnell - 15.08.2011, 19:54
AW: SetPlayerSkill! - by samtey - 15.08.2011, 20:34
Re: AW: SetPlayerSkill! - by Kush - 15.08.2011, 20:49
AW: SetPlayerSkill! - by samtey - 15.08.2011, 21:03
Re: AW: SetPlayerSkill! - by Markx - 15.08.2011, 21:04
AW: SetPlayerSkill! - by samtey - 15.08.2011, 21:07
Re: AW: SetPlayerSkill! - by Kush - 15.08.2011, 21:11
AW: SetPlayerSkill! - by samtey - 15.08.2011, 21:16
AW: SetPlayerSkill! - by samtey - 17.08.2011, 09:39
Re: SetPlayerSkill! - by doreto - 17.08.2011, 20:03
AW: SetPlayerSkill! - by samtey - 17.08.2011, 20:16

Forum Jump:


Users browsing this thread: 3 Guest(s)