PDA

View Full Version : Need Some Help won't take too long


Xtra
20/07/2017, 05:03 PM
Where are the brackets missing? I couldn't solve it can anyone help?

error 010: invalid function or declaration

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;
}

Xtra
20/07/2017, 05:36 PM
nvm solved i was doing something dumb :3

Barnwell
20/07/2017, 07:49 PM
}
return 1;
It was this right?

Kane
20/07/2017, 07:55 PM
Nevermind.

Astralis
20/07/2017, 08:47 PM
Also don't use OnPlayerUpdate.

iLearner
20/07/2017, 08:51 PM
Can I know why are you getting player pos? While you don't make any use of it.

Xtra
22/07/2017, 04:08 AM
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