Need help to fixing some errors. - Offer rep++!
#1

Hi all

So i repaired more debugs what gaves me crashdetect, but i don't know how to fix these debugs:
Код:
[11:45:13] [debug] Run time error 5: "Invalid memory access"
[11:45:13] [debug] Backtrace (most recent call first):
[11:45:13] [debug] #0  public FC_OnPlayerConnect(playerid=2)+0x33fc at D:\RAS\RAS 0.3e\gamemodes\RAS.pwn:210
[11:45:13] [debug] #1  public Streamer_OnPlayerConnect(playerid=2)+0x3e60 at D:\RAS\RAS 0.3e\gamemodes\RAS.pwn:210
[11:45:13] [debug] #2  public SSCANF_OnPlayerConnect(playerid=2)+0x6098 at D:\RAS\RAS 0.3e\gamemodes\RAS.pwn:210
[11:45:13] [debug] #3  public Itter_OnPlayerConnect(playerid=2)+0xd430 at D:\RAS\RAS 0.3e\gamemodes\RAS.pwn:210
[11:45:13] [debug] #4  public @receivepacket(playerid=2)+0x113e8 at D:\RAS\RAS 0.3e\gamemodes\RAS.pwn:210
And the line are:
Код:
line 210: new DBResult:R2, Query[ 712 ];
WTF?! I don't know what is wrong with this


PS. - Here are the lines upper that 210
Код:
...
if ( strlen( dini_Get( "ladmin/config/aka.txt", GetPlayerIPEx( playerid ) ) ) == 0 ) dini_Set( "ladmin/config/aka.txt", GetPlayerIPEx( playerid ), PlayerName( playerid ) );
    else
    {
        if ( strfind( dini_Get( "ladmin/config/aka.txt", GetPlayerIPEx( playerid ) ), PlayerName( playerid ), true ) == -1 )
        {
            format( string, sizeof( string ),"%s,%s", dini_Get( "ladmin/config/aka.txt", GetPlayerIPEx( playerid ) ), PlayerName( playerid ) );
            dini_Set( "ladmin/config/aka.txt", GetPlayerIPEx( playerid ), string );
        }
    }
	//-------------------------------- Login Player --------------------------//
Line 210: new DBResult:R2, Query[ 712 ];
format( Query, sizeof( Query ), "SELECT `Key`,`IP` FROM `Accounts` WHERE `Name` = '%s'", PlayerName( playerid ) );
...
I think is problem with that code with dini, but i don't know the reason. The person(s) what help's me i will offer rep++, thanks.
Reply


Messages In This Thread
Need help to fixing some errors. - Offer rep++! - by Edvin - 20.03.2012, 12:25
Re: Need help to fixing some errors. - Offer rep++! - by Edvin - 20.03.2012, 13:03
Re: Need help to fixing some errors. - Offer rep++! - by Edvin - 20.03.2012, 13:50
Re: Need help to fixing some errors. - Offer rep++! - by Twisted_Insane - 20.03.2012, 13:52
Re: Need help to fixing some errors. - Offer rep++! - by T0pAz - 20.03.2012, 13:53
Re: Need help to fixing some errors. - Offer rep++! - by Edvin - 20.03.2012, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)