24.02.2019, 20:40
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(playerid, COLOR_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(agevalue, playerage[playerid]);
PlayerTextDrawHide(playerid, registrationtextdraw_40[playerid]);
PlayerTextDrawSetString(playerid, registrationtextdraw_40[playerid], agevalue);
PlayerTextDrawShow(playerid, registrationtextdraw_40[playerid]);
valstr(yearvalue, 2019-playerage[playerid]);
PlayerTextDrawHide(playerid, years[playerid]);
PlayerTextDrawSetString(playerid, years[playerid], yearvalue);
PlayerTextDrawShow(playerid, years[playerid]);
} else return 0;
}
else if(playertextid == ageminus[playerid])
{
if(playerdone[playerid] != 0) return SendClientMessage(playerid, COLOR_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(agevalue, playerage[playerid]);
PlayerTextDrawHide(playerid, registrationtextdraw_40[playerid]);
PlayerTextDrawSetString(playerid, registrationtextdraw_40[playerid], agevalue);
PlayerTextDrawShow(playerid, registrationtextdraw_40[playerid]);
valstr(yearvalue, 2019-playerage[playerid]);
PlayerTextDrawHide(playerid, years[playerid]);
PlayerTextDrawSetString(playerid, years[playerid], yearvalue);
PlayerTextDrawShow(playerid, years[playerid]);
} else return 0;
}