Array out of bounds!
#6

So, after some inspection i believe these two parts may be the parts which cause the errors as when the player uses it he gets a ban by the server for "Unauthorized RCON login" which is a system implemented by me to ban anyone who tries to login to the rcon while not an admin.

PHP Code:
else if(playertextid == ageplus[playerid])
    {
        if(
playerdone[playerid] != 0) return SendClientMessage(playeridCOLOR_LIGHTRED"ERROR: You've already saved your progress, click reset if you want to edit something.");
        if(
playerage[playerid] < 99)
        {
            new 
agevalue[2], yearvalue[3];
            
playerage[playerid] = playerage[playerid]+1;
            
valstr(agevalueplayerage[playerid]);
            
PlayerTextDrawHide(playeridregistrationtextdraw_40[playerid]);
            
PlayerTextDrawSetString(playeridregistrationtextdraw_40[playerid], agevalue);
            
PlayerTextDrawShow(playeridregistrationtextdraw_40[playerid]);
            
valstr(yearvalue2019-playerage[playerid]);
            
PlayerTextDrawHide(playeridyears[playerid]);
            
PlayerTextDrawSetString(playeridyears[playerid], yearvalue);
            
PlayerTextDrawShow(playeridyears[playerid]);
        } else return 
0;
    }
    else if(
playertextid == ageminus[playerid])
    {
        if(
playerdone[playerid] != 0) return SendClientMessage(playeridCOLOR_LIGHTRED"ERROR: You've already saved your progress, click reset if you want to edit something.");
        if(
playerage[playerid] > 15)
        {
            new 
agevalue[1], yearvalue[3];
            
playerage[playerid] = playerage[playerid]-1;
            
valstr(agevalueplayerage[playerid]);
            
PlayerTextDrawHide(playeridregistrationtextdraw_40[playerid]);
            
PlayerTextDrawSetString(playeridregistrationtextdraw_40[playerid], agevalue);
            
PlayerTextDrawShow(playeridregistrationtextdraw_40[playerid]);
            
valstr(yearvalue2019-playerage[playerid]);
            
PlayerTextDrawHide(playeridyears[playerid]);
            
PlayerTextDrawSetString(playeridyears[playerid], yearvalue);
            
PlayerTextDrawShow(playeridyears[playerid]);
        } else return 
0;
    } 
Reply


Messages In This Thread
Array out of bounds! - by JasonRiggs - 21.02.2019, 22:14
Re: Array out of bounds! - by Calisthenics - 22.02.2019, 14:20
Re: Array out of bounds! - by JasonRiggs - 22.02.2019, 23:02
Re: Array out of bounds! - by Pottus - 22.02.2019, 23:16
Re: Array out of bounds! - by JasonRiggs - 24.02.2019, 19:50
Re: Array out of bounds! - by JasonRiggs - 24.02.2019, 20:40
Re: Array out of bounds! - by JasonRiggs - 25.02.2019, 18:03
Re: Array out of bounds! - by JasonRiggs - 26.02.2019, 21:01
Re: Array out of bounds! - by JasonRiggs - 27.02.2019, 21:42
Re: Array out of bounds! - by Pottus - 27.02.2019, 23:08

Forum Jump:


Users browsing this thread: 2 Guest(s)