Undefined symbol "INI_Create", wtf?
#1

Yeah, exactly, wtf is wrong? Usin' SII, and these are the lines:

pawn Код:
stock SavePlayerData( playerid, file[ ] )
{
    new str[ 28 ], data[ 2 ];
    data[ 0 ] = GetPVarInt( playerid, "pKills" );
    data[ 1 ] = GetPVarInt( playerid, "pDeaths" );
    if( !fexist( file ) )
    {
        INI_Create(file); //HERE for example
        INI_Open(file);
        INI_WriteString("Player_name", PlayerName( playerid ) );
        INI_Save();
        INI_Close();
    }
    INI_Open(file);
    format( str, sizeof( str ), "Month_kills_%i", gYear );
    INI_WriteString(str, implodevalue( p_month_kills[ playerid ], "|" ) );
    format(str, sizeof( str ), "Month_deaths_%i", gYear );
    INI_WriteString (str, implodevalue( p_month_deaths[ playerid ], "|" ) );
    INI_WriteString ("Total_kills_deaths", implodevalue( data, "|" ) );
    INI_Save();
    INI_Close();
}
Reply
#2

Sure that there is a INI_Create(File) i've allways created the file manually. And what file are you opening actually?
Reply
#3

I don't know what you want to say; what exactly do I have to do now?
Reply
#4

No such thing as INI_Create afaik. Read the release thread
Reply
#5

FORGET everything, I've figured out the problem:

I need to include THIS:

pawn Код:
#include <servermoneyGM>
So whenever I'm including it, this error appear, what the fuck does it have to do with the other include?

Код:
D:\Program Files\GTA San Andreas\SAMP_Server\pawno\include\YSI/y_hooks.inc(63) : fatal error 111: user error: Did you do <YSI/y_hooks> instead of the required <YSI\y_hooks>?


Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
EDIT; fixed, but still the same-ass errors -___-...
Reply
#6

Opening the file should create it. Just delete the INI_Create line, and see what it does.
Reply
#7

Now I'm here, with other errors I also don't get...Check 'em out:

Код:
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(252) : error 020: invalid symbol name ""
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(5725) : error 017: undefined symbol "FPS"
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(5725) : warning 215: expression has no effect
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(5725) : error 001: expected token: ";", but found "]"
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(5725) : error 029: invalid expression, assumed zero
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(5725) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
That's line 252, I mean, what the fuck? I've defined shit already:

pawn Код:
new Text:FPS[MAX_PLAYERS]; //I DEFINED IT :O
And then:

pawn Код:
TextDrawDestroy(FPS[playerid]); //line with the undefined symbol-error
Reply
#8

I know the bump-limit isn't reached, but it's an urgent case, lol. So, do you know what's wrong?
Reply
#9

Try making FPS to FPS1 and see then.
Reply
#10

Still the same shit, even don't know what sense it'd make to change it like this, lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)