SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/07/2017, 05:03 PM   #1
Xtra
Big Clucker
 
Join Date: Aug 2015
Posts: 67
Reputation: 2
Default Need Some Help won't take too long

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;
}
__________________
Need Help In Scripting/Mapping? why not pm me and see my skills
Xtra is offline   Reply With Quote
Old 20/07/2017, 05:36 PM   #2
Xtra
Big Clucker
 
Join Date: Aug 2015
Posts: 67
Reputation: 2
Default Re: Need Some Help won't take too long

nvm solved i was doing something dumb :3
__________________
Need Help In Scripting/Mapping? why not pm me and see my skills
Xtra is offline   Reply With Quote
Old 20/07/2017, 07:49 PM   #3
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 549
Reputation: 40
Default Re: Need Some Help won't take too long

}
return 1;
It was this right?
Barnwell is offline   Reply With Quote
Old 20/07/2017, 07:55 PM   #4
Kane
Gangsta
 
Kane's Avatar
 
Join Date: Sep 2012
Posts: 822
Reputation: 130
Default Re: Need Some Help won't take too long

Nevermind.

Last edited by Kane; 20/07/2017 at 07:56 PM. Reason: --
Kane is offline   Reply With Quote
Old 20/07/2017, 08:47 PM   #5
Astralis
Guest
 
Posts: n/a
Default Re: Need Some Help won't take too long

Also don't use OnPlayerUpdate.
  Reply With Quote
Old 20/07/2017, 08:51 PM   #6
iLearner
Gangsta
 
iLearner's Avatar
 
Join Date: Apr 2017
Posts: 576
Reputation: 134
Default Re: Need Some Help won't take too long

Can I know why are you getting player pos? While you don't make any use of it.
iLearner is offline   Reply With Quote
Old 22/07/2017, 04:08 AM   #7
Xtra
Big Clucker
 
Join Date: Aug 2015
Posts: 67
Reputation: 2
Default Re: Need Some Help won't take too long

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
__________________
Need Help In Scripting/Mapping? why not pm me and see my skills
Xtra is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How long has your PC been on for? Mrkrabz Everything and Nothing 59 23/12/2014 02:59 PM
/me Long UnAngel Scripting Help 6 31/01/2013 04:13 AM
How Long? seanny Everything and Nothing 5 09/07/2011 06:52 AM
How long does it take to do it X35B General 6 21/11/2010 06:06 AM
How long Torran Help Archive 5 11/02/2010 10:31 AM


All times are GMT. The time now is 11:41 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.