Nece attach

Započeo .ysi, April 16, 2022, 15:16:16 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Napravio sam ribar i kada klikne "Y" da mu se stvori stap u ruci i neka animacija...radi sve al stap se ne stvori,a animaciju nisam stavio nez koja je najbolja
Deo skripte:
   if(IsPlayerToPoint(playerid, 2, 2611.6404,-2241.8857,1.3460) || IsPlayerToPoint(playerid, 2, 2611.6763,-2237.8752,1.3460) || IsPlayerToPoint(playerid, 2, 2611.6160,-2234.5042,1.3460) || IsPlayerToPoint(playerid, 2, 2611.5776,-2231.3760,1.3460) || IsPlayerToPoint(playerid, 2, 2611.4561,-2227.4036,1.3460) || IsPlayerToPoint(playerid, 2, 2637.4495,-2250.4634,1.3487) || IsPlayerToPoint(playerid, 2, 2637.2893,-2254.5371,1.3414) || IsPlayerToPoint(playerid, 2, 2632.9016,-2254.8572,1.3487) || IsPlayerToPoint(playerid, 2, 2628.6089,-2254.6279,1.3414) || IsPlayerToPoint(playerid, 2, 2626.5120,-2254.7485,1.3414) || IsPlayerToPoint(playerid, 2, 2624.1978,-2254.6924,1.3487) || IsPlayerToPoint(playerid, 2, 2611.2756,-2223.9180,1.3460))
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendErrorMessage(playerid, "Ne mozete pecati iz auta.");
        //(PlayerInfo[playerid][xPosao] = POSAO_RIBAR)
		{
		   	TogglePlayerControllable(playerid,0);
		   	SetPlayerAttachedObject(playerid, 10, 18632, 6);
	    	//plyAnimation(playerid,"SWORD","sword_block",50.0 ,0,1,0,1,1);
	    	//plyAnimation(playerid,"SWORD","sword_block",50.0 ,0,1,0,1,1);
           	GameTextForPlayer(playerid, "Pecate...", 10000, 6);
           	SetTimerEx("Ribar",10000, false, "i", playerid);
		}
    } 

forward Ribar(playerid);
public Ribar(playerid)
{
	RemovePlayerAttachedObject(playerid, 10);
	SendClientMessage(playerid, -1, "Upecali ste ribu,sada idite da je preradite.");
	GivePlayerMoney(playerid,5000);
	TogglePlayerControllable(playerid,1);
	return 1;
}

forward IsPlayerToPoint(playerid, Float:radi, Float:x, Float:y, Float:z);
public IsPlayerToPoint(playerid, Float:radi, Float:x, Float:y, Float:z)
{
	if(IsPlayerConnected(playerid))
	{
		new Float:oldposx, Float:oldposy, Float:oldposz;
		new Float:tempposx, Float:tempposy, Float:tempposz;
		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
		tempposx = (oldposx -x);
		tempposy = (oldposy -y);
		tempposz = (oldposz -z);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
	}
	return 0;
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
//

Slika/video ingame problema(obavezno ako je ingame problem): //

Ako neko zna neku animaicju koja je dobra za ovo da napise,hvala unaprijed...
e