Raised This Month: $51 Target: $400
 12% 

error 001: expected token: ",", but found "}"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nettlex
New Member
Join Date: Jan 2021
Old 01-06-2021 , 16:39   error 001: expected token: ",", but found "}"
Reply With Quote #1

Hello community, I have this error when compiling (Title). I went through the code and I don't see any errors, but it tells me what if there are.
The code is this:
Quote:
format(DB_Query, sizeof(DB_Query), "UPDATE cuentas SET posx=%f,posy=%f,posz=%f WHERE nombre=%s",
PosJugador_[0],
PosJugador_[1],
PosJugador_[2],
NombreJugador[playerid]
};
help me please!
Nettlex is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 01-06-2021 , 16:44   Re: error 001: expected token: ",", but found "}"
Reply With Quote #2

Replace }; with );
Also, SourcePawn functions are case sensitive, so format needs to be with upper case: Format
__________________

Last edited by MAGNAT2645; 01-06-2021 at 16:47.
MAGNAT2645 is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 21:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode