SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/09/2012, 06:13 PM   #1
imnoob
Big Clucker
 
Join Date: May 2012
Posts: 155
Reputation: 1
Default error 001: expected token: ")", but found "{"

LINE 12296--->
Code:
{
full line --->
Code:
            if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937 || IsPlayerInRangeOfPoint(3.0,playerid, -227.027999, 1401.229980, 27.765625))
11296       {
	        SendClientMessage(playerid, COLOR_GREY, "   Ur not in advertiser !");
	        return 1;
	    }
imnoob is offline   Reply With Quote
Old 10/09/2012, 06:14 PM   #2
C00K13M0N$73R
Big Clucker
 
C00K13M0N$73R's Avatar
 
Join Date: Aug 2012
Location: England, United Kingdom
Posts: 189
Reputation: 80
Default Re: error 001: expected token: ")", but found "{"

Show some more code.
C00K13M0N$73R is offline   Reply With Quote
Old 10/09/2012, 06:14 PM   #3
Roko_foko
Gangsta
 
Join Date: Jul 2009
Location: Croatia, Split
Posts: 541
Reputation: 44
Default Re: error 001: expected token: ")", but found "{"

Code:
            if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937)  || IsPlayerInRangeOfPoint(3.0,playerid, -227.027999, 1401.229980, 27.765625))
            {
	        SendClientMessage(playerid, COLOR_GREY, "   Ur not in advertiser !");
	        return 1;
	    }
You missed a ')' before ||
Roko_foko is offline   Reply With Quote
Old 10/09/2012, 06:27 PM   #4
imnoob
Big Clucker
 
Join Date: May 2012
Posts: 155
Reputation: 1
Default Re: error 001: expected token: ")", but found "{"

Quote:
Originally Posted by Roko_foko View Post
Code:
            if(!PlayerToPoint(3.0,playerid,-2640.762939,1406.682006,906.460937)  || IsPlayerInRangeOfPoint(3.0,playerid, -227.027999, 1401.229980, 27.765625))
            {
	        SendClientMessage(playerid, COLOR_GREY, "   Ur not in advertiser !");
	        return 1;
	    }
You missed a ')' before ||
omggg thanks <3333 god bless you btw HVALA :*
imnoob is offline   Reply With Quote
Old 09/01/2014, 02:32 PM   #5
Raza2013
Banned
 
Join Date: Feb 2013
Location: PakistaN
Posts: 338
Reputation: 18
Default Re: error 001: expected token: ")", but found "{"

remember you must put ")" whenever you change something brah

Last edited by Raza2013; 09/01/2014 at 02:34 PM. Reason: rr
Raza2013 is offline   Reply With Quote
Old 09/01/2014, 02:34 PM   #6
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,827
Reputation: 1401
Default Re: error 001: expected token: ")", but found "{"

EDIT: You posted your code to fix the error and then you edit your post..
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 17/02/2020, 02:30 PM   #7
GwarrSVK
Little Clucker
 
Join Date: Feb 2020
Posts: 5
Reputation: 0
Default Re: error 001: expected token: ")", but found "{"

help

pwn(35) : error 001: expected token: ",", but found ";"
Attached Images
File Type: jpg help.jpg (62.5 KB, 15 views)
GwarrSVK is offline   Reply With Quote
Old 17/02/2020, 05:24 PM   #8
Davi52
Little Clucker
 
Join Date: Sep 2018
Posts: 40
Reputation: 0
Default Re: error 001: expected token: ")", but found "{"

Quote:
Originally Posted by GwarrSVK View Post
help

pwn(35) : error 001: expected token: ",", but found ";"
You missed a bracket, replace the first line with:
Code:
new hospitalid, Float:closest = PlayerDistanceToPoint(playerid,Hospitals[0][h_X], Hospitals[0][h_Y],Hospitals[0][h_Z]);
Davi52 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
error 001: expected token: "-string end-", but found "-identifier-" iGetty Scripting Help 3 15/05/2012 05:39 PM
C:\Users\Andy\Documents\Connor\NRP - New\gamemodes\NRP.pwn(2126) : error 001: expected token: ")", but found "{" NewerthRoleplay Scripting Help 2 14/03/2012 08:47 PM
error 001: expected token: "-string end-", but found "-identifier-" Any Ideas? Jack_Rocker Scripting Help 4 04/11/2011 01:03 PM
D:\Mis documentos\Server\gamemodes\lscnr.pwn(30602) : error 001: expected token: ",", but found ";" [M]xFire Help Archive 3 27/08/2010 07:11 PM


All times are GMT. The time now is 05:56 AM.


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