Jump to content
  • 0

problema server


star69

Question

Problema intalnita (descriere): Uneori se inchide serverul si imi apare eroarea de mai jos
Ero(area / rile) / warning-(ul / urile): la compile nu apare nici o eroare
Liniile de cod / sursa / script-ul(obligatoriu):

18:39:14] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:14] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:15] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[18:39:16] [sampgdk:error] Too many callback arguments (at most 32 allowed)


 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

fa update la pluginuri si includeuri, si pune si un crash detect    #include <crashdetect> plugins crashdetect 

recompileaza si porneste iar serverul,

PS: ma astept sa nu faca bine updateul si sa vina ca nu se intampla nimic :)

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Uneori serverul se blocheaza fara sa spuna nimic in server_log

jucatorii raman pe server, chiar daca ei parasesc jocul, dupa ce se blocheaza serverul

nimeni nu poate intra pe server

dupa ce am facut update la pluginuri nu mi`a mai aparut

 [sampgdk:error] Too many callback arguments (at most 32 allowed)

dar mi-a aparut

[12:14:06] [debug] Run time error 4: "Array index out of bounds"
[12:14:06] [debug]  Accessing element at index 65535 past array upper bound 1999
[12:14:06] [debug] AMX backtrace:
[12:14:06] [debug] #0 001c73e4 in ?? (123, 1) from plm.amx
[12:14:06] [debug] #1 00186ae0 in public OnDialogResponse (2, 33, 1, -1, 3394652) from plm.amx

Edited by star69
Link to comment
Share on other sites

  • 0
					case 2:
					{
						format(message, sizeof(message), "Current Plate : "CHAT_YELLOW"%s", Vehicles[i][vehPlate]);
						ShowPlayerDialog(playerid, DIALOG_CHANGEPLATE, DIALOG_STYLE_INPUT, "Schimba numarul de inmatriculare", message, "Schimba", "Renunta");
					}
		case DIALOG_CHANGEPLATE:
		{
			if(response)
			{
				if(strlen(inputtext) > 10 || strlen(inputtext) < 3)
				{
					Server(playerid, "Introdu intre 3-10 caractere.");
				}
				else
				{
					new i = Player[playerid][carVCP];
					if(i == INVALID_VEHICLE_ID)
					{
						Server(playerid, "Error when receiving vehicle data.");
						return 1;
					}
					format(Vehicles[i][vehPlate], 16, "%s", inputtext);
					SetVehicleNumberPlate(Vehicles[i][vehicleData], Vehicles[i][vehPlate]);
					createVehicle(Vehicles[i][vehicleData], true);
				}
			}
			cmd_vcp(playerid, "");
		}

 

Link to comment
Share on other sites

  • 0

arata comanda vcp si functia createVehicle

si cred ca ar trebui sa inlocuiesti asta 

cmd_vcp(playerid, "");

cu asta

new str2[40];

cmd_vcp(playerid, str2);// desi nu cred ca are legatura, dar nu am mai vazut asa

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
COMMAND:vcp(playerid, params[])
{
	if(IsPlayerInAnyVehicle(playerid))
	{
		new bool:found = false;
		for(new i = 0; i < MAX_VEH; i++)
		{
			if(Vehicles[i][vehicleData] == GetPlayerVehicleID(playerid) && Vehicles[i][vehStatus])
			{
				if(!strcmp(Vehicles[i][vehOwner], GetName(playerid)))
				{
					new message[256];
					format(message, sizeof(message), "Status \t\t\t");
					if(Vehicles[i][vehLock])
						format(message, sizeof(message), "%s"CHAT_YELLOW"Incuiat", message);
					else
						format(message, sizeof(message), "%s"CHAT_RED"Neincuiat", message);
					format(message, sizeof(message), "%s\nAlarma \t\t\t", message);
					if(Vehicles[i][vehAlarm])
						format(message, sizeof(message), "%s"CHAT_YELLOW"Pornita", message);
					else
						format(message, sizeof(message), "%s"CHAT_RED"Oprita", message);
					format(message, sizeof(message), "%s\nNumar de inmatriculare \t\t\t"CHAT_YELLOW"%s", message, Vehicles[i][vehPlate]);
					format(message, sizeof(message), "%s\nParcheaza masina aici", message);
					format(message, sizeof(message), "%s\nCuloare 1\t\t"CHAT_YELLOW"%d", message, Vehicles[i][vehColor][0]);
					format(message, sizeof(message), "%s\nCuloare 2\t\t"CHAT_YELLOW"%d", message, Vehicles[i][vehColor][1]);
					Player[playerid][carVCP] = i;
					ShowPlayerDialog(playerid, DIALOG_VCP, DIALOG_STYLE_LIST, "Panoul de control al vehiculului", message, "Alege", "Renunta");
				}
				else
				{
					Server(playerid, "Nu esti propietarul acestui vehicul.");
				}
				found = true;
				break;
			}
		}
		if(!found)
		{
			Server(playerid, "Aceasta comanda este doar pentru masinile personale.");
		}
	}
	else
	{
		Server(playerid, "Trebuie sa fii intr-un vehicul sa poti folosi aceasta comanda");
	}
	return 1;
}
stock createVehicle(vehicleid, bool:removeold = false)
{
	if(removeold)
	{
		DestroyVehicle(Vehicles[vehicleid][vehicleData]);
	}
	Vehicles[vehicleid][vehicleData]	= CreateVehicle(Vehicles[vehicleid][vehModel], Vehicles[vehicleid][vehPos][0], Vehicles[vehicleid][vehPos][1], Vehicles[vehicleid][vehPos][2], Vehicles[vehicleid][vehPos][3], Vehicles[vehicleid][vehColor][0], Vehicles[vehicleid][vehColor][1], 360000); AVehicleData[Vehicles[vehicleid][vehicleData]][Fuel] = MaxFuel;
	SetVehicleNumberPlate(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehPlate]);
	LinkVehicleToInterior(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehInt]);
	SetVehicleVirtualWorld(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehVW]);
	for(new i = 0; i < 14; i++)
	{
		AddVehicleComponent(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehMods][i]);
	}
	ChangeVehicleColor(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehColor][0], Vehicles[vehicleid][vehColor][1]);
	ChangeVehiclePaintjob(Vehicles[vehicleid][vehicleData], Vehicles[vehicleid][vehPaint]);

	return 1;
}

 

Link to comment
Share on other sites

  • 0

cauta definit variabila 

MAX_VEH

si mareste din 2000 in 5000 sau ceva de genul

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.