Some rare and strange errors... -
Twisted_Insane - 08.05.2012
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();
}
Re: Undefined symbol "INI_Create", wtf? -
HDFord - 08.05.2012
Sure that there is a INI_Create(File) i've allways created the file manually. And what file are you opening actually?
Re: Undefined symbol "INI_Create", wtf? -
Twisted_Insane - 08.05.2012
I don't know what you want to say; what exactly do I have to do now?
Re: Undefined symbol "INI_Create", wtf? -
ReneG - 08.05.2012
No such thing as INI_Create afaik. Read the release thread
Re: Undefined symbol "INI_Create", wtf? -
Twisted_Insane - 08.05.2012
FORGET everything, I've figured out the problem:
I need to include THIS:
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 -___-...
Re: Undefined symbol "INI_Create", wtf? -
2KY - 08.05.2012
Opening the file should create it. Just delete the INI_Create line, and see what it does.
Re: Undefined symbol "INI_Create", wtf? -
Twisted_Insane - 09.05.2012
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
Re: Undefined symbol "INI_Create", wtf? -
Twisted_Insane - 09.05.2012
I know the bump-limit isn't reached, but it's an urgent case, lol. So, do you know what's wrong?
Re: Undefined symbol "INI_Create", wtf? -
TzAkS. - 09.05.2012
Try making FPS to FPS1 and see then.
Re: Undefined symbol "INI_Create", wtf? -
Twisted_Insane - 09.05.2012
Still the same shit, even don't know what sense it'd make to change it like this, lol.