SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 06/08/2020, 12:33 PM   #1
Mehrad
Little Clucker
 
Join Date: Jan 2020
Location: Los Santos
Posts: 4
Reputation: 0
Cool error 076: syntax error in the expression, or invalid function call

Hello
Error: error 076: syntax error in the expression, or invalid function call
Lines:
PHP Code:
                KillTimer(Map0);
                
KillTimer(Map1);
                
KillTimer(Map2);
                
KillTimer(Map3);
                
KillTimer(Map4);
                
KillTimer(Map5);
                
KillTimer(Map6);
                
KillTimer(Map7);
                
KillTimer(Map8);
                
KillTimer(Map9); 
Please help me
Mehrad is offline   Reply With Quote
Old 06/08/2020, 12:50 PM   #2
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 463
Reputation: 20
Default Re: error 076: syntax error in the expression, or invalid function call

Where are you declaring these timers? To kill a timer, you would have to start the timer similar to (with the arguments in the function). If you aren't using a variable with the timer, you can't end it.

Code:
Map0 = SetTimer({...});
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
An upcoming mix of trucking & light roleplay
Proxus is offline   Reply With Quote
Old 06/08/2020, 01:12 PM   #3
NimA00GaMeR
Little Clucker
 
NimA00GaMeR's Avatar
 
Join Date: Sep 2018
Posts: 22
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

Did you add
new Map0;
new Map1;
...

?
__________________
Sorry for my bad english
NimA00GaMeR is offline   Reply With Quote
Old 06/08/2020, 01:34 PM   #4
ShadowMortar
Huge Clucker
 
ShadowMortar's Avatar
 
Join Date: Jul 2016
Location: Croatia
Posts: 303
Reputation: 110
Default Re: error 076: syntax error in the expression, or invalid function call

Is it even a timer?
__________________
If you appreciate(d) my help, I will appreciate +REP .

Quote:
Originally Posted by CheezIt View Post
Follow your heart and own style.
Feel free to PM me if you need help.
Quote:
Originally Posted by Pottus View Post
That is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes
ShadowMortar 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
[Ajuda] (112 -- 113) : error 076: syntax error in the expression, or invalid function call JoaoBorges Português/Portuguese 2 24/06/2017 10:22 PM
error 076: syntax error in the expression, or invalid function call berdar007 Scripting Help 3 25/12/2014 06:14 PM
[Ajuda] KillTimer dando erro... (error 076: syntax error in the expression, or invalid function call) Dragonborn Português/Portuguese 2 09/09/2012 04:07 AM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM
error 076: syntax error in the expression, or invalid function call RaZvY Help Archive 3 09/08/2011 11:09 AM


All times are GMT. The time now is 07:23 AM.


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