error 076: syntax error in the expression, or invalid function call - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 076: syntax error in the expression, or invalid function call (
/showthread.php?tid=406760)
error 076: syntax error in the expression, or invalid function call -
PDChaseOfficial - 11.01.2013
this line gives me the error:
Код:
PlayerInfo[playerid][pVeh1]=GetNewVehicleID;
Error:
error 076: syntax error in the expression, or invalid function call
stock GetNewVehicleID()
{
for(new i=1;i<MAX_VEHICLES;i++)
{
new query[80];
format(query,sizeof(query),"SELECT * FROM Vehicles WHERE ID = %i",i);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows<1)
{
mysql_free_result();
return i;
}
}
mysql_free_result();
return 0;
}
Re: error 076: syntax error in the expression, or invalid function call -
Vince - 11.01.2013
MUST use the brackets when calling a function.
Re: error 076: syntax error in the expression, or invalid function call -
PDChaseOfficial - 11.01.2013
Quote:
Originally Posted by Vince
MUST use the brackets when calling a function.
|
you mean like this?
Код:
PlayerInfo[playerid][pVeh1]=GetNewVehicleID();
Its still giving me the same error.