error 076: syntax error in the expression, or invalid function call
#1

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;
}
Reply
#2

MUST use the brackets when calling a function.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)