SA-MP Forums Archive
Need Some Help won't take too long - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Some Help won't take too long (/showthread.php?tid=637744)



Need Some Help won't take too long - Xtra - 20.07.2017

Where are the brackets missing? I couldn't solve it can anyone help?

error 010: invalid function or declaration

Code:
public OnPlayerUpdate(playerid)
{
        new Float:animX, Float:animY, Float:animZ;
        new anim = GetPlayerAnimationIndex(playerid);
        GetPlayerPos(playerid, animX, animY, animZ);
        if((anim >= 1538) && (anim <= 1542) && animZ > 5)
        {

        TogglePlayerControllable(playerid, false);
        SetPlayerPos(playerid, 1941.1534,-1100.2391,-23.7885);
        ShowPlayerDialog(playerid, DIALOG_PRAVILA,DIALOG_STYLE_MSGBOX,"Anti-Cheat", "{FFCC00}[Anticheat]"WHITE"[Anti-Cheat] You Have Been Banned for using Fly Hacks Bye Bye!!!","Ok","");
        BanEx(playerid, "Fly Hack");
		}
	    return 1;
}



Re: Need Some Help won't take too long - Xtra - 20.07.2017

nvm solved i was doing something dumb :3


Re: Need Some Help won't take too long - Barnwell - 20.07.2017

}
return 1;
It was this right?


Re: Need Some Help won't take too long - Kane - 20.07.2017

Nevermind.


Re: Need Some Help won't take too long - Astralis - 20.07.2017

Also don't use OnPlayerUpdate.


Re: Need Some Help won't take too long - iLearner - 20.07.2017

Can I know why are you getting player pos? While you don't make any use of it.


Re: Need Some Help won't take too long - Xtra - 22.07.2017

Quote:
Originally Posted by iLearner
View Post
Can I know why are you getting player pos? While you don't make any use of it.
im using this for anti cheat ( fly one ) and i was writing like this at the start --------------INCLUDE------------ so it didnt work