Little Help, Please - Dini or something else.
#1

Hello everyone,

So I'm making car system (not really good one). So I made something like this:
Quote:

stock CreateVehicleEx(modelid, Float, Float:y, Float:z, Float:angle, color1, color2, respawntime, ownername[20])
{
new carid = GetFreeVehicleSlot();
CarInfo[carid][model] = modelid;
CarInfo[carid][xspawn] = x;
CarInfo[carid][yspawn] = y;
CarInfo[carid][zspawn] = z;
CarInfo[carid][anglespawn] = angle;
CarInfo[carid][col1] = color1;
CarInfo[carid][col2] = color2;
CarInfo[carid][respawn] = respawntime;
CarInfo[carid][owner] = ownername;
validcar[carid] = true;
CreateVehicle(modelid, x, y, z, angle, color1, color2, respawntime);
return carid;
}

And then when I create new vehicle like this:
Quote:

CreateVehicleEx(dini_Int(filename, "Model"), dini_Float(filename, "XSpawn"), dini_Float(filename, "YSpawn"), dini_Float(filename, "ZSpawn"), dini_Float(filename, "Angle"), dini_Int(filename, "COL1"), dini_Int(filename, "COL2"),dini_Int(filename, "Respawn"), dini_Get(filename, "Owner") );

Compieler gives me an error like this:

Quote:

blablablablabla......\gamemodes\car.pwn(412) : error 047: array sizes do not match, or destination array is too small

I'm kinda dumb at scripting (and english) so can anyone say what's wrong here?
Reply


Messages In This Thread
SOLVED - by Dirkon - 06.07.2011, 14:37
Re: Little Help, Please - Dini or something else. - by Calgon - 06.07.2011, 14:42
Re: Little Help, Please - Dini or something else. - by Dirkon - 06.07.2011, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)