05.01.2012, 05:16
Firstly, what does tag mismatch fully mean?
Second, why do i get the error for..:
(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);
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;
}
(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);