[Crash-login]
#1

Hello guys,
I really have a big problem with my gamemode, I recive this error ever when i create a new account
https://www.youtube.com/watch?v=PN40mDh75gw

Server log:
PHP код:
[13:32:45Incoming connection127.0.0.1:49160
[13:32:46] [joinYest_Tes has joined the server (10:127.0.0.1)
[
13:32:46] [debugRun time error 4"Array index out of bounds"
[13:32:46] [debug]  Accessing element at index 300 past array upper bound 299
[13:32:46] [debugAMX backtrace:
[
13:32:46] [debug#0 0000de88 in ?? () from PR-RP.amx
[13:32:46] [debug#1 0000f200 in ?? () from PR-RP.amx
[13:32:46] [debug#2 0000bcd0 in ?? () from PR-RP.amx
[13:32:46] [debug#3 0000618c in public Itter_OnPlayerConnect () from PR-RP.amx
[13:32:46] [debug#4 native CallLocalFunction () [00472ad0] from samp-server.exe
[13:32:46] [debug#5 00005870 in public OnPlayerConnect () from PR-RP.amx 
Line code:
PHP код:
public OnPlayerConnect(playerid)
{
    if(
IsPlayerNPC(playerid)) return 1;
    new 
string[128], user[128], daymonthyearhourminutesecond;
    new 
num GetMaxIPs(playerid);
    if(
num >= && !IsPlayerNPC(playerid)) return Kick(playerid);
    
OnConnectInit(playerid);
    
//furn system
    
gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    for(new 
x=0SELECTION_ITEMSx++) {
        
gSelectionFurns[playerid][x] = PlayerText:INVALID_TEXT_DRAW;
    }
    
gFurnAt[playerid] = 0;
    if(!
NameIsRP(PlayerName(playerid)))
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"Your name is not acceptable please use the format: Firstname_Lastname.");
        
KickEx(playerid);
        return 
1;
    }
    
GetPlayerHost(playerid); // Gets the DNS Data
    
SetPlayerColor(playerid,COLOR_GREY);
    
format(stringsizeof(string),"%s (%d) connected to the server."PlayerName(playerid), playerid);
    if(
GetPVarInt(playerid"Admin") > || GetPVarInt(playerid"Helper") > || GetPVarInt(playerid"RegTeam") > 0)
    {
        
LoginLog(string);
    }
    foreach (
Player,i)
    {
        if(
GetPVarInt(i"CntNames") == 1)
        {
            
SendClientMessage(i,COLOR_WHITE,string);
        }
    }
    
ResetPlayerWeapons(playerid);
    
CheckIP(playerid);
    
gettime(hour,minute,second), FixHour(hour), hour shifthourgetdate(year,month,day);
    
format(usersizeof(user), "users/%s.ini"PlayerName(playerid));
    if(
DOF2_FileExists(user) && DOF2_GetInt(user"Banned") == 1)
    {
        if(
DOF2_GetInt(user"TempYear") > && DOF2_GetInt(user"TempMonth") > && DOF2_GetInt(user"TempDay") > 0)
        {
            new 
proceed 0;
            if(
year DOF2_GetInt(user"TempYear")) // If the year is over your tempban year.
            
{
                
DOF2_SetInt(user"Banned"0);
                
DOF2_SetInt(user"TempYear"0);
                
DOF2_SetInt(user"TempMonth"0);
                
DOF2_SetInt(user"TempDay"0);
                
DOF2_WriteFile();
                
format(stringsizeof(string),"unbanip %s"DOF2_GetString(user"IP"));
                
SendRconCommand(string);
                
SendRconCommand("reloadbans");
                
format(stringsizeof(string),"AdmWarn: %s was un-temp banned from Project-Bot."PlayerName(playerid));
                
SendAdminMessage(COLOR_YELLOW,string);
                
proceed=1;
            }
            if(
month DOF2_GetInt(user"TempMonth")) // If the month is over your tempban month.
            
{
                
DOF2_SetInt(user"Banned"0);
                
DOF2_SetInt(user"TempYear"0);
                
DOF2_SetInt(user"TempMonth"0);
                
DOF2_SetInt(user"TempDay"0);
                
DOF2_WriteFile();
                
format(stringsizeof(string),"unbanip %s"DOF2_GetString(user"IP"));
                
SendRconCommand(string);
                
SendRconCommand("reloadbans");
                
format(stringsizeof(string),"AdmWarn: %s was un-temp banned from Project-Bot."PlayerName(playerid));
                
SendAdminMessage(COLOR_YELLOW,string);
                
proceed=1;
            }
            if(
month >= DOF2_GetInt(user"TempMonth") && day >= DOF2_GetInt(user"TempDay")) // If the day is your tempban undue day or above.
            
{
                
DOF2_SetInt(user"Banned"0);
                
DOF2_SetInt(user"TempYear"0);
                
DOF2_SetInt(user"TempMonth"0);
                
DOF2_SetInt(user"TempDay"0);
                
DOF2_WriteFile();
                
format(stringsizeof(string),"unbanip %s"DOF2_GetString(user"IP"));
                
SendRconCommand(string);
                
SendRconCommand("reloadbans");
                
format(stringsizeof(string),"AdmWarn: %s was un-temp banned from Project-Bot."PlayerName(playerid));
                
SendAdminMessage(COLOR_YELLOW,string);
                
proceed=1;
            }
            if(
proceed == 0)
            {
                new 
mtext[50];
                switch(
DOF2_GetInt(user"TempMonth"))
                {
                    case 
1mtext "January";
                    case 
2mtext "February";
                    case 
3mtext "March";
                    case 
4mtext "April";
                    case 
5mtext "May";
                    case 
6mtext "June";
                    case 
7mtext "July";
                    case 
8mtext "August";
                    case 
9mtext "September";
                    case 
10mtext "October";
                    case 
11mtext "November";
                    case 
12mtext "December";
                }
                if(
DOF2_GetInt(user"TempDay") < 10format(stringsizeof(string),"You are temporarily banned until %s-0%d-%d."mtextDOF2_GetInt(user"TempDay"), DOF2_GetInt(user"TempYear"));
                else 
format(stringsizeof(string),"You are temporarily banned until %s-%d-%d."mtextDOF2_GetInt(user"TempDay"), DOF2_GetInt(user"TempYear"));
                
SendClientMessage(playeridCOLOR_LIGHTREDstring);
                return 
Kick(playerid);
            }
        }
    }
    return 
1;

I try a lot of posibilities, I've search on ****** but still nothing. I really appreciate a good answer and i will REP+. Thank you guys.
Reply


Messages In This Thread
[Crash-login] - by serbansubs - 16.04.2014, 20:47
Re: [Crash-login] - by Konstantinos - 16.04.2014, 20:57
Re: [Crash-login] - by serbansubs - 17.04.2014, 05:28
Re: [Crash-login] - by XxJenxX - 17.04.2014, 07:19
Re: [Crash-login] - by Sithis - 17.04.2014, 07:37
Re: [Crash-login] - by serbansubs - 17.04.2014, 07:56
Re: [Crash-login] - by Konstantinos - 17.04.2014, 10:06
Re: [Crash-login] - by serbansubs - 17.04.2014, 11:42
Re: [Crash-login] - by Konstantinos - 17.04.2014, 12:04
Re: [Crash-login] - by serbansubs - 17.04.2014, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)