[Help]Y_INI problem with car system...
#1

Hi there, i'm new scripting so if I have anything wrong say it to me because I want to improve my Pawn skills.

Well these are the errors...
Код:
Roleplay\gamemodes\SARP.pwn(206) : error 029: invalid expression, assumed zero
Roleplay\gamemodes\SARP.pwn(206) : error 017: undefined symbol "name"
Roleplay\gamemodes\SARP.pwn(206) : error 001: expected token: ";", but found "return"
Roleplay\gamemodes\SARP.pwn(206) : fatal error 107: too many error messages on one line
Code:
pawn Код:
stock LoadVehicle(filename[36])
{
    new vehicleid, modelu, Float:posiX, Float:posiY, Float:posiZ, Float:Angl, Col1, Col2, Respaun, own;
    vehicleid = GetFreeVehicleSlot();
    modelu = INI_Int("Model", CarData[vehicleid][model]); //This line is of the errors...
    posiX = INI_Float("PosX", CarData[vehicleid][vPosX]);
    posiY = INI_Float("PosY", CarData[vehicleid][vPosY]);
    posiZ = INI_Float("PosZ", CarData[vehicleid][vPosZ]);
    Angl = INI_Float("Angulo", CarData[vehicleid][Angulo]);
    Col1 = INI_Int("Color1", CarData[vehicleid][col1]);
    Col2 = INI_Int("Color2", CarData[vehicleid][col2]);
    Respaun = INI_Int("RespawnTime", CarData[vehicleid][resp]);
    own = INI_String("Owner", CarData[vehicleid][owner], MAX_PLAYER_NAME);
    CreateVehicleEx(modelu, posiX, posiY, posiZ, Angle, Col1, Col2, Respaun, own);
    return 1;
}
Enum (if you need it)

pawn Код:
enum CarInfo
{
    Float:vPosX,
    Float:vPosY,
    Float:vPosZ,
    model,
    owner[MAX_PLAYER_NAME],
    Float:Angulo,
    col1,
    col2,
    resp
}
new CarData[MAX_VEHICLES][CarInfo];
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)