hey ich habe kennzeichen system doch er zeigt mir immer error 001: expected token: "-string end-", but found "-identifier-" an was ist los ?
dcmd_kennzeichen(playerid,params[])
{
new kz[15];
if(sscanf(params,"s", kz)) { return SendClientMessage(playerid, COLOR_GRAD1, "Benutzung: /kennzeichen [Text(Höchstens 9 Buchstaben/Zahlen)]"); }
if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keinem Fahrzeug!"); }
if(KennzeichenErlaubnis[playerid] == 0) { return SendClientMessage(playerid, COLOR_GRAD1, "Du hast kein Kennzeichen in der Stadthalle gekauft!"); }
if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
new vehiclefid = GetPlayerVehicleID(playerid);
SetVehicleNumberPlate(vehiclefid, kz);
SetVehicleToRespawn(vehiclefid);
new Float: X,Float: Y,Float: Z;
GetPlayerPos(playerid,X,Y,Z);
SetVehiclePos(vehiclefid,X,Y,Z);
PutPlayerInVehicle(playerid,vehiclefid,0);
new name[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, name, sizeof name);
format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]);
dini_Set(str, "Plate", kz);
for(new x = 0; x < MaxVeh; x++)
{
PlayerCar[playerid][x][Plate] = kz; //hier ist der fehler
}
KennzeichenErlaubnis[playerid] = 0;
}
return 1;
}