Moin moin, ich möchte ger den Namen der Perosn der das Auto/Motorrad gehört auslesen, das Script will aber nicht wie ich
public LadeFahrzeug(carid)
{
new str[25];
format(str, sizeof(str), "%d.car", carid);
if(carid == 0)
{
return 1;
}
if(fexist(str))
{
format(CarInfo[carid][abesitzer],sizeof(CarInfo[carid][abesitzer]),dini_Get(str, "Besitzer"));//2368
CarInfo[carid][aID] = dini_Int(str, "ID");
CarInfo[carid][aX] = dini_Float(str, "aX");
CarInfo[carid][aY] = dini_Float(str, "aY");
CarInfo[carid][aZ] = dini_Float(str, "aZ");
CarInfo[carid][aAngle] = dini_Float(str, "aAngle");
CarInfo[carid][aModel] = dini_Int(str, "Model");
CarInfo[carid][afarbe1] = dini_Int(str, "farbe1");
CarInfo[carid][afarbe2] = dini_Int(str, "farbe2");
}
return 1;
}
C:\Users\\Desktop\SAMP-SERVER\gamemodes\negwen.pwn(2368) : error 001: expected token: "]", but found "-identifier-"
C:\Users\\Desktop\SAMP-SERVER\gamemodes\negwen.pwn(2368) : warning 215: expression has no effect
C:\Users\\Desktop\SAMP-SERVER\gamemodes\negwen.pwn(2368) : error 001: expected token: ";", but found "]"
C:\Users\\Desktop\SAMP-SERVER\gamemodes\negwen.pwn(2368) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\SAMP-SERVER\gamemodes\negwen.pwn(2368) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.