Error

Započeo PetarVG, Februar 26, 2020, 22:39:31 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Nece da mi da oruzje kada izaberem(uzeo sam filetscriptu)
Dio skripte:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
	    case 5555:
		{
	  		if(!response) return SendClientMessage(playerid, 0xAA3333AA, "You have canceled the training!");
	  		if(listitem < 3) { if(Skills[listitem] > 999) return SendClientMessage(playerid, -1, "You have already reached max skill level with this weapon!"); }
	  		else if(Skills[listitem + 1] > 999) return SendClientMessage(playerid, -1, "You have already reached max skill level with this weapon!");
			cmd_go(playerid);
	  		if(IsTraining[playerid] != 0)
	  		{
		  		GetPlayerPos(playerid, OldX, OldY, OldZ);
		  		SendClientMessage(playerid, 0xFFFF00AA, "Your weapons will be temporarily reset during the training");
		  		for(new i=0; i < 11; i++)	GetPlayerWeaponData(playerid,i,pWeapons[i],pAmmo[i]);
				ResetPlayerWeapons(playerid);
				switch(listitem)
				{
   					case 0:
					{
					   GivePlayerWeapon(playerid, 22, 100);
					}
		    		case 1:
		    		{
				 		GivePlayerWeapon(playerid, 23, 100);
					}
			    	case 2:
			    	{
				 		GivePlayerWeapon(playerid, 24, 100);
					}
			    	case 3:
			    	{
					 	GivePlayerWeapon(playerid, 26, 100);
					}
					case 4:
					{
					 	GivePlayerWeapon(playerid, 27, 100);
					}
				    case 5:
				    {
					 	GivePlayerWeapon(playerid, 28, 100);
					}
				    case 6:
				    {
					 	GivePlayerWeapon(playerid, 29, 100);
					}
				    case 7:
				    {
					 	GivePlayerWeapon(playerid, 30, 100);
					}
				    case 8:
				    {
					 	GivePlayerWeapon(playerid, 31, 100);
					}
				    case 9:
				    {
					 	GivePlayerWeapon(playerid, 34, 100);
					}
				}
			}
		}
	}
    return 1;
}

Evo dialog
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem)://

Proveri id dialoga da se pokalapa sa ovim idom (5555)
GAD SAM JA



@over procitaj pravila foruma...
Ne smijes citirati neciji post bez nekog svog dodatnog komentara koji bi pomogao!