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

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

PHP код:
new VehiclePos
Reply
#3

Your stock has parameters:
stock SpawnCarAtHouse(playerid,freeid);
But you are using none of them.
Reply
#4

Why did you create another topic?
It has already been answered.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)