Need Some Help won't take too long
#1

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;
}
Reply
#2

nvm solved i was doing something dumb :3
Reply
#3

}
return 1;
It was this right?
Reply
#4

Nevermind.
Reply
#5

Also don't use OnPlayerUpdate.
Reply
#6

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)