25.06.2012, 14:04
(
Last edited by Deal-or-die; 25/06/2012 at 03:00 PM.
)
This is my error
This is my stock
Where I want the stock called.
Ideas?
I know that I am probably going to slap myself later for something blindingly obvious. But I can't see it at the moment hence the reason I am asking.
Code:
(4717) : error 076: syntax error in the expression, or invalid function call (4731) : error 076: syntax error in the expression, or invalid function call
pawn Code:
stock RegisteredPlate(playerid)
{
new string[50];
format(string,sizeof(string),"{000000}%c%c%c-%i%i%i",(65+random(26)),(65+random(26)),(65+random(26)),random(10),random(10),random(10));
return string;
}
pawn Code:
if(response)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, GrottiSalesPos_X,GrottiSalesPos_Y,GrottiSalesPos_Z))//Grotti Dealership.
{
SetVehicleNumberPlate(car, RegisteredPlate);
//---------------^ Row 4717 ^-----------
format(query,sizeof(query), "INSERT INTO `vehicles`('%d','%s')",VehicleColour[playerid][1],RegisteredPlate);
//---------------^ Row 4731 ^-----------
mysql_query(query);
SendClientMessage(playerid, COLOR_GREEN, "Vehicle Purchased");
return 1;
}
I know that I am probably going to slap myself later for something blindingly obvious. But I can't see it at the moment hence the reason I am asking.