INI error
#1

Код:
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(706) : warning 202: number of arguments does not match definition
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(706) : warning 202: number of arguments does not match definition
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1057) : error 017: undefined symbol "name"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1057) : error 001: expected token: ")", but found "["
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1057) : warning 215: expression has no effect
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1057) : error 001: expected token: ";", but found "]"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1057) : fatal error 107: too many error messages on one line

All I am trying to do is a loadvehicle thing that I can call at ongamemodeinit but I get those errors
This is the public.

Код:
public LoadVehicles(vehid,string[])
{
    new str[3];
    format(str, sizeof(str), VEH_PATH, string);

    INI_String("Owner", VehicleInfo[vehid][vOwner], 24);
    INI_Int("Type",VehicleInfo[vehid][vType]);
    //INI_Int("ID",VehicleInfo[vehid][vID]);
    INI_String("Plate", VehicleInfo[vehid][vPlate], 10);
    INI_Float("Pos_x", VehicleInfo[vehid][vPos_x]);
    INI_Float("Pos_y", VehicleInfo[vehid][vPos_y]);
    INI_Float("Pos_z", VehicleInfo[vehid][vPos_z]);
    INI_Float("Rot", VehicleInfo[vehid][vRot]);
	INI_Int("Color1",VehicleInfo[vehid][vColor1]);
	INI_Int("Color2",VehicleInfo[vehid][vColor2]);
	INI_Int("RespawnDelay",VehicleInfo[vehid][vRespawnDelay]);
    return 1;
}
Line 1057:
Код:
INI_String("Owner", VehicleInfo[vehid][vOwner], 24);


Not even this is working:

Ongamemodeinit:
Код:
for(new i=0; i < MAXPVEHS; i++)
	{
	     INI_ParseFile(VehPth(i), "LoadVehicles_%d", .bExtra = true, .extra = i);
	     CreateVehicle(VehicleInfo[i][vType], VehicleInfo[i][vPos_x], VehicleInfo[i][vPos_y], VehicleInfo[i][vPos_z], VehicleInfo[i][vRot], VehicleInfo[i][vColor1], VehicleInfo[i][vColor2], -1);
	     SetVehicleNumberPlate(i, VehicleInfo[i][vPlate]);
	}
------

Код:
LoadVehicles_data(vehid,name[],value[])
{
    
    INI_String("Owner", VehicleInfo[vehid][vOwner], MAX_PLAYER_NAME);
    INI_Int("Type",VehicleInfo[vehid][vType]);
    //INI_Int("ID",VehicleInfo[vehid][vID]);
    INI_String("Plate", VehicleInfo[vehid][vPlate], 10);
    INI_Float("Pos_x", VehicleInfo[vehid][vPos_x]);
    INI_Float("Pos_y", VehicleInfo[vehid][vPos_y]);
    INI_Float("Pos_z", VehicleInfo[vehid][vPos_z]);
    INI_Float("Rot", VehicleInfo[vehid][vRot]);
	INI_Int("Color1",VehicleInfo[vehid][vColor1]);
	INI_Int("Color2",VehicleInfo[vehid][vColor2]);
	INI_Int("RespawnDelay",VehicleInfo[vehid][vRespawnDelay]);
    return 1;
}
Reply


Messages In This Thread
INI error - by AndreiWow - 25.01.2017, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)