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=552626)
Who Can Help ? -
berdar007 - 25.12.2014
pawn Код:
(9890) : error 076: syntax error in the expression, or invalid function call
pawn Код:
(9890) : VehiclePos[freeid] = SpawnCarAtHouse;
pawn Код:
stock SpawnCarAtHouse(playerid , freeid)
{
new str1[256],pname[24],str[256];
GetPlayerName(playerid, pname, sizeof(pname));
format(str1, sizeof(str1), "Houses/HOwnersID/%s.ini", udb_encode(pname));
if (dini_Exists(str1))
{
if(dini_Int(str1,"Houseid")!=-255)
{
new Float:x,Float:y,Float:z;
str = dini_Get(str1,"SpawnInt");
x = dini_Float(str1,"SpawnX");
y = dini_Float(str1,"SpawnY");
z = dini_Float(str1,"SpawnZ");
new free2 = GetVehicleID(freeid);
SetVehiclePos(free2, x+4, y+4, z);
}
}
return 1;
}
Re : error 076: syntax error in the expression, or invalid function call -
StreetRP - 25.12.2014
Re: error 076: syntax error in the expression, or invalid function call -
zaibaslr2 - 25.12.2014
Your stock has parameters:
stock SpawnCarAtHouse(playerid,freeid);
But you are using none of them.
Re: error 076: syntax error in the expression, or invalid function call -
dominik523 - 25.12.2014
Why did you create another topic?
It has already been answered.