tag mismatch
#1

Firstly, what does tag mismatch fully mean?

Second, why do i get the error for..:

pawn Код:
CMD:vcreate(playerid, params[])
{
    new
        Float:Pos[4],
        ivModel,
        ivColors[2];

    if(sscanf(params, "iii", ivModel, ivColors[0], ivColors[1])) return SendClientMessage(playerid, -1, "Usage: /vcreate modelid, color1, color2");

    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerFacingAngle(playerid, Pos[3]);

    ++ Total_Veh_Created;

    VehicleInfo[Total_Veh_Created][vModel]  = ivModel;

   
    new
        vFile[128];
    format(vFile, sizeof(vFile), "%i.ini", Total_Veh_Created);

    INI_Open(vFile);

    INI_SetTag(vFile,"data");
    INI_WriteInt(vFile,"Model",ivModel);
                INI_Close(vFile);

    return 1;
}
(705) : error 035: argument type mismatch (argument 1)
(706) : error 035: argument type mismatch (argument 1)
(707) : error 035: argument type mismatch (argument 1)

those lines in the script are:

INI_SetTag(vFile,"data");
INI_WriteInt(vFile,"Model",ivModel);
INI_Close(vFile);
Reply
#2

You have enums?? i think there must be enums
Reply
#3

pawn Код:
CMD:vcreate(playerid, params[])
{
    new
        Float:Pos[4],
        ivModel,
        ivColors[2];

    if(sscanf(params, "iii", ivModel, ivColors[0], ivColors[1])) return SendClientMessage(playerid, -1, "Usage: /vcreate modelid, color1, color2");

    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerFacingAngle(playerid, Pos[3]);

    ++ Total_Veh_Created;

    VehicleInfo[Total_Veh_Created][vModel]  = ivModel;

   
    new
        vFile[128];

    format(vFile, sizeof(vFile), "%i.ini", Total_Veh_Created);

    new INI:Out = INI_Open(vFile);

    INI_SetTag(Out,"data");
    INI_WriteInt(Out,"Model",ivModel);
    INI_Save(Out);
    INI_Close(Out);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)