06.07.2011, 14:37
(
Последний раз редактировалось Dirkon; 06.07.2011 в 16:13.
)
Hello everyone,
So I'm making car system (not really good one). So I made something like this:
And then when I create new vehicle like this:
Compieler gives me an error like this:
I'm kinda dumb at scripting (and english) so can anyone say what's wrong here?
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; } |
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") ); |
Quote:
blablablablabla......\gamemodes\car.pwn(412) : error 047: array sizes do not match, or destination array is too small |