Hey Community,
mal wieder ich^^
Ich hab ein kleines Problem mit Arrays:
Mein PWN Code:
ZitatAlles anzeigennew string[128];
format(string,sizeof(string),"%s",dini_Int(Autodatei,"Pos"));
new array[3][32];
split(string,array,',');
if(array[0]==0)
{
if(array[1]==0)
{
if(array[2]==0)
{
veh = CreateVehicle(dini_Int(Autodatei,"Model"),ahspawnx,ahspawny,ahspawnz,ahspawnrot, dini_Int(Autodatei,"Color1"), dini_Int(Autodatei,"Color2"), -1);
}
}
}
else
{
veh = CreateVehicle(dini_Int(Autodatei,"Model"),array[0],array[1],array[2],dini_Int(Autodatei,"Rot"), dini_Int(Autodatei,"Color1"), dini_Int(Autodatei,"Color2"), -1);
}
Mein Error:
Zeile (4190) : Array-Index fehlt (bspw. Array[1], Name: "array")
Zeile (4192) : Array-Index fehlt (bspw. Array[1], Name: "array")
Zeile (4194) : Array-Index fehlt (bspw. Array[1], Name: "array")
Zeile (4202) : Falscher Variablentyp als Parameter (Parameter #2)
4 Errors, 0 Warnungen
Du hast Errors im Skript. Kompilierung abgebrochen
PWNMod Compiler Version 1.2
(c) Trooper[Y]
In Kooperation mit GTA-Servers.de
Es handelt sich um die Grün markierten Zeilen