Beiträge von GFJohnny94

    sorry für doppenpost aber ich mach mal alles hier rein vllt kann mir dann einer besser helfen



    #define FILTERSCRIPT
    #include #include
    forward AutoKaufen(playerid,autoid);
    #if defined FILTERSCRIPT
    #define Dialog_Buycar 11
    enum AHInfo{ Name[25], Float:posx, Float:posy, Float:posz, Float:spawnx, Float:spawny, Float:spawnz, Float:spawna, Kasse, Besitzer[MAX_PLAYER_NAME]}
    enum AKInfo{ modelid, Name[35], Autohausname[25], Preis, Float:posx, Float:posy, Float:posz, Float:posa}
    enum Ainfo{ Name[35], modelid, Float:HP, Nummernschild[20], Float:posx, Float:posy, Float:posz, Float:posa, Farbe1, Farbe2, Paintjob, Spoiler, Hood, Roof, Sideskirt, Lamps, Nitro, Exhaust, Wheels, Stereo, Hydraulics, FrontBumper, RearBumper, VentRight, VentLeft}
    new Autohaus[1][AHInfo] = {{"Los Santos Autohaus", 2131.4858,-1149.5398,24.2522,2148.5422,-1138.8616,25.1576,268.8964, 0, "Staat"}};
    new Buycars[10][AKInfo] = {//{CarID,""Name","Autohaus",PREIS,x,y,z}{400,"Landstalker","Los Santos Autohaus",2000,2136.5510,-1128.2233,25.6762},{402,"Buffalo","Los Santos Autohaus",3000,2136.0598,-1133.0558,25.5218},{404,"Perenniel","Los Santos Autohaus",1500,2135.6445,-1138.0363,25.2855},{413,"Pony","Los Santos Autohaus",5000,2135.9729,-1143.2456,25.1127},{422,"Bobcar","Los Santos Autohaus",2500,2120.9812,-1157.8997,24.1621},{442,"Romero","Los Santos Autohaus",3400,2117.1462,-1157.1924,24.1817},{478,"Walton","Los Santos Autohaus",1000,2118.1665,-1145.4304,24.6067},{496,"Balista Compact","Los Santos Autohaus",3500,2118.2312,-1139.2200,24.7615},{500,"Mesa","Los Santos Autohaus",3000,2118.1636,-1134.2207,25.3312},{533,"Feltzer","Los Santos Autohaus",2400,2136.0107,-1148.3329,24.1498}};
    const MAX_PLAYER_CARS = 2;new Autos[MAX_PLAYERS][MAX_PLAYER_CARS][Ainfo];new Spielercar[MAX_PLAYERS][MAX_PLAYER_CARS];new kaufauto[10];
    public OnFilterScriptInit(){ print("\n--------------------------------------"); print(" Autokauf System by Simon"); print("--------------------------------------\n");
    for(new i = 0; i < sizeof Autohaus; i++) { new datei[50]; format(datei,sizeof(datei),"/Autohaeuser/%s.ini",Autohaus[i][Name]); if(!dini_Exists(datei)) { dini_Create(datei); dini_Set(datei,"Besitzer","Staat"); dini_IntSet(datei,"Kasse",Autohaus[i][Kasse]); } Autohaus[i][Kasse] = dini_Int(datei,"Kasse"); format(Autohaus[i][Besitzer],MAX_PLAYER_NAME,dini_Get(datei,"Besitzer")); CreatePickup(1239,1,Autohaus[i][posx],Autohaus[i][posy],Autohaus[i][posz],-1); kaufauto[i] = CreateVehicle(Buycars[i][modelid],Buycars[i][posx],Buycars[i][posy],Buycars[i][posz],Buycars[i][posa],-1,-1,-1); } return 1;}
    public OnFilterScriptExit(){ for(new i = 0; i < sizeof Autohaus; i++) { new datei[75]; format(datei,sizeof(datei),"/Autohaeuser/%s.ini",Autohaus[i][Name]); dini_Set(datei,"Besitzer",Autohaus[i][Besitzer]); dini_IntSet(datei,"Kasse",Autohaus[i][Kasse]); } return 1;}
    #endif
    public OnPlayerConnect(playerid){ for(new i = 0; i < 3; i++) { new Autodatei[100],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(Autodatei,sizeof(Autodatei),"/Autos/%s_Auto_%d.ini",name,i); if(dini_Exists(Autodatei)) { Autos[playerid][i][modelid] = dini_Int(Autodatei,"modelid"); Autos[playerid][i][HP] = dini_Int(Autodatei,"HP"); Autos[playerid][i][Farbe1] = dini_Int(Autodatei,"Farbe1"); Autos[playerid][i][Farbe2] = dini_Int(Autodatei,"Farbe2"); Autos[playerid][i][Paintjob] = dini_Int(Autodatei,"Paintjob"); format(Autos[playerid][i][Nummernschild],20,dini_Get(Autodatei,"Nummernschild")); Autos[playerid][i][posx] = dini_Int(Autodatei,"posx"); Autos[playerid][i][posy] = dini_Int(Autodatei,"posy"); Autos[playerid][i][posz] = dini_Int(Autodatei,"posz"); Autos[playerid][i][posa] = dini_Int(Autodatei,"posa"); Autos[playerid][i][Spoiler] = dini_Int(Autodatei,"Spoiler"); Autos[playerid][i][Wheels] = dini_Int(Autodatei,"Wheels"); Autos[playerid][i][Nitro] = dini_Int(Autodatei,"Nitro"); Autos[playerid][i][Roof] = dini_Int(Autodatei,"Roof"); Autos[playerid][i][Hood] = dini_Int(Autodatei,"Hood"); Autos[playerid][i][Sideskirt] = dini_Int(Autodatei,"Sideskirt"); Autos[playerid][i][Lamps] = dini_Int(Autodatei,"Lamps"); Autos[playerid][i][Exhaust] = dini_Int(Autodatei,"Exhaust"); Autos[playerid][i][Stereo] = dini_Int(Autodatei,"Stereo"); Autos[playerid][i][Hydraulics] = dini_Int(Autodatei,"Hydraulics"); Autos[playerid][i][VentRight] = dini_Int(Autodatei,"VentRight"); Autos[playerid][i][VentLeft] = dini_Int(Autodatei,"VentLeft"); Autos[playerid][i][FrontBumper] = dini_Int(Autodatei,"FrontBumper"); Autos[playerid][i][RearBumper] = dini_Int(Autodatei,"RearBumper"); Spielercar[playerid][i] = CreateVehicle(Autos[playerid][i][modelid],Autos[playerid][i][posx],Autos[playerid][i][posy],Autos[playerid][i][posz]+1.5,Autos[playerid][i][posa],-1,-1,-1); SetVehicleNumberPlate(Spielercar[playerid][i],dini_Get(Autodatei,"Nummernschild")); SetVehicleParamsForPlayer(Spielercar[playerid][i],playerid,0,0); if(Autos[playerid][i][HP] > 250) { SetVehicleHealth(Spielercar[playerid][i],Autos[playerid][i][HP]); } else SetVehicleHealth(Spielercar[playerid][i],255.0); if(Autos[playerid][i][Paintjob] >= 0) { ChangeVehiclePaintjob(Spielercar[playerid][i],Autos[playerid][i][Paintjob]); } if(Autos[playerid][i][Farbe1] >= 0 || Autos[playerid][i][Farbe2] >= 0) { ChangeVehicleColor(Spielercar[playerid][i],Autos[playerid][i][Farbe1],Autos[playerid][i][Farbe2]); } if(Autos[playerid][i][Spoiler] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Spoiler]); } if(Autos[playerid][i][Hood] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Hood]); } if(Autos[playerid][i][Roof] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Roof]); } if(Autos[playerid][i][Sideskirt] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Sideskirt]); } if(Autos[playerid][i][Lamps] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Lamps]); } if(Autos[playerid][i][Nitro] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Nitro]); } if(Autos[playerid][i][Exhaust] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Exhaust]); } if(Autos[playerid][i][Wheels] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Wheels]); } if(Autos[playerid][i][Stereo] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Stereo]); } if(Autos[playerid][i][Hydraulics] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][Hydraulics]); } if(Autos[playerid][i][FrontBumper] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][FrontBumper]); } if(Autos[playerid][i][RearBumper] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][RearBumper]); } if(Autos[playerid][i][VentRight] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][VentRight]); } if(Autos[playerid][i][VentLeft] >= 1000) { AddVehicleComponent(Spielercar[playerid][i],Autos[playerid][i][VentLeft]); } } else continue; } return 1;}
    public OnPlayerDisconnect(playerid, reason){ for(new i = 0; i < 3; i++) { new Autodatei[100],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(Autodatei,sizeof(Autodatei),"/Autos/%s_Auto_%d.ini",name,i); if(dini_Exists(Autodatei)) { new Float:vhp; GetVehicleHealth(Spielercar[playerid][i],vhp); dini_IntSet(Autodatei,"Farbe1",Autos[playerid][i][Farbe1]); dini_IntSet(Autodatei,"Farbe2",Autos[playerid][i][Farbe2]); dini_IntSet(Autodatei,"Paintjob",Autos[playerid][i][Paintjob]); dini_FloatSet(Autodatei,"posx",Autos[playerid][i][posx]); dini_FloatSet(Autodatei,"posy",Autos[playerid][i][posy]); dini_FloatSet(Autodatei,"posz",Autos[playerid][i][posz]); dini_FloatSet(Autodatei,"posa",Autos[playerid][i][posa]); dini_FloatSet(Autodatei,"HP",vhp); dini_Set(Autodatei,"Nummernschild",Autos[playerid][i][Nummernschild]); dini_IntSet(Autodatei,"Spoiler",GetVehicleComponentInSlot(Spielercar[playerid][i],0)); dini_IntSet(Autodatei,"Hood",GetVehicleComponentInSlot(Spielercar[playerid][i],1)); dini_IntSet(Autodatei,"Roof",GetVehicleComponentInSlot(Spielercar[playerid][i],2)); dini_IntSet(Autodatei,"Sideskirt",GetVehicleComponentInSlot(Spielercar[playerid][i],3)); dini_IntSet(Autodatei,"Lamps",GetVehicleComponentInSlot(Spielercar[playerid][i],4)); dini_IntSet(Autodatei,"Nitro",GetVehicleComponentInSlot(Spielercar[playerid][i],5)); dini_IntSet(Autodatei,"Exhaust",GetVehicleComponentInSlot(Spielercar[playerid][i],6)); dini_IntSet(Autodatei,"Wheels",GetVehicleComponentInSlot(Spielercar[playerid][i],7)); dini_IntSet(Autodatei,"Stereo",GetVehicleComponentInSlot(Spielercar[playerid][i],8)); dini_IntSet(Autodatei,"Hydraulics",GetVehicleComponentInSlot(Spielercar[playerid][i],9)); dini_IntSet(Autodatei,"FrontBumper",GetVehicleComponentInSlot(Spielercar[playerid][i],10)); dini_IntSet(Autodatei,"RearBumper",GetVehicleComponentInSlot(Spielercar[playerid][i],11)); dini_IntSet(Autodatei,"VentRight",GetVehicleComponentInSlot(Spielercar[playerid][i],12)); dini_IntSet(Autodatei,"VentLeft",GetVehicleComponentInSlot(Spielercar[playerid][i],13)); } } return 1;}
    public OnPlayerStateChange(playerid, newstate, oldstate){ if(newstate == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid); for(new i = 0; i < sizeof Buycars; i++) { if(vehicleid == kaufauto[i]) { new str[150]; format(str,sizeof(str),"Möchten Sie dieses Fahrzeug kaufen?\n\nName: %s\nPreis: %d", Buycars[i][Name], Buycars[i][Preis]); TogglePlayerControllable(playerid,0); return ShowPlayerDialog(playerid,Dialog_Buycar,DIALOG_STYLE_MSGBOX,"Autokauf",str,"Kaufen","Abbruch"); } else continue; } } return 1;}
    public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[]){ if(dialogid == Dialog_Buycar) { if(response) { new vehicleid = GetPlayerVehicleID(playerid); for(new i = 0; i < sizeof Buycars; i++) { if(vehicleid == kaufauto[i]) { new geld = GetPlayerMoney(playerid); if(geld >= Buycars[i][Preis]) { new datei[100],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(datei,sizeof(datei),"/Autos/%s_Auto_1.ini",name); if(dini_Exists(datei)) { new datei2[100]; format(datei2,sizeof(datei2),"/Autos/%s_Auto_2.ini",name); if(dini_Exists(datei2)) { SendClientMessage(playerid,0xDD0000FF,"Fehler: Sie besitzen bereits 2 Fahrzeuge!!"); TogglePlayerControllable(playerid,1); RemovePlayerFromVehicle(playerid); } else AutoKaufen(playerid,2); } else AutoKaufen(playerid,1); } else { SendClientMessage(playerid,0xDD0000FF,"Fehler: Sie haben nicht genügend Geld!"); TogglePlayerControllable(playerid,1); RemovePlayerFromVehicle(playerid); } } } } else { TogglePlayerControllable(playerid,1); RemovePlayerFromVehicle(playerid); } } return 1;}
    public AutoKaufen(playerid,autoid){ for(new i = 0; i < sizeof Buycars; i++) { if(GetPlayerVehicleID(playerid) == kaufauto[i]) { for(new j = 0; j < sizeof Autohaus; j++) { if(!strcmp(Autohaus[j][Name],Buycars[i][Autohausname],true)) { new Autodatei[100],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(Autodatei,sizeof(Autodatei),"/Autos/%s_Auto_%d.ini",name,autoid); dini_Create(Autodatei); dini_Set(Autodatei,"Name",Buycars[i][Name]); dini_IntSet(Autodatei,"modelid",Buycars[i][modelid]); dini_FloatSet(Autodatei,"HP",1000.00); dini_FloatSet(Autodatei,"posx",Autohaus[j][spawnx]); dini_FloatSet(Autodatei,"posy",Autohaus[j][spawny]); dini_FloatSet(Autodatei,"posz",Autohaus[j][spawnz]); dini_FloatSet(Autodatei,"posa",Autohaus[j][spawna]); dini_IntSet(Autodatei,"Farbe1",-1); dini_IntSet(Autodatei,"Farbe2",-1); dini_IntSet(Autodatei,"Paintjob",-1); dini_Set(Autodatei,"Nummernschild",Buycars[i][Name]); Spielercar[playerid][autoid] = CreateVehicle(Buycars[i][modelid],Autohaus[j][spawnx],Autohaus[j][spawny],Autohaus[j][spawnz],Autohaus[j][spawna],-1,-1,-1); SetVehicleNumberPlate(Spielercar[playerid][autoid],dini_Get(Autodatei,"Nummernschild")); dini_IntSet(Autodatei,"Spoiler",GetVehicleComponentInSlot(Spielercar[playerid][autoid],0)); dini_IntSet(Autodatei,"Hood",GetVehicleComponentInSlot(Spielercar[playerid][autoid],1)); dini_IntSet(Autodatei,"Roof",GetVehicleComponentInSlot(Spielercar[playerid][autoid],2)); dini_IntSet(Autodatei,"Sideskirt",GetVehicleComponentInSlot(Spielercar[playerid][autoid],3)); dini_IntSet(Autodatei,"Lamps",GetVehicleComponentInSlot(Spielercar[playerid][autoid],4)); dini_IntSet(Autodatei,"Nitro",GetVehicleComponentInSlot(Spielercar[playerid][autoid],5)); dini_IntSet(Autodatei,"Exhaust",GetVehicleComponentInSlot(Spielercar[playerid][autoid],6)); dini_IntSet(Autodatei,"Wheels",GetVehicleComponentInSlot(Spielercar[playerid][autoid],7)); dini_IntSet(Autodatei,"Stereo",GetVehicleComponentInSlot(Spielercar[playerid][autoid],8)); dini_IntSet(Autodatei,"Hydraulics",GetVehicleComponentInSlot(Spielercar[playerid][autoid],9)); dini_IntSet(Autodatei,"FrontBumper",GetVehicleComponentInSlot(Spielercar[playerid][autoid],10)); dini_IntSet(Autodatei,"RearBumper",GetVehicleComponentInSlot(Spielercar[playerid][autoid],11)); dini_IntSet(Autodatei,"VentRight",GetVehicleComponentInSlot(Spielercar[playerid][autoid],12)); dini_IntSet(Autodatei,"VentLeft",GetVehicleComponentInSlot(Spielercar[playerid][autoid],13)); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid,1); Autohaus[j][Kasse]+=Buycars[i][Preis]; Autos[playerid][autoid][modelid] = dini_Int(Autodatei,"modelid"); Autos[playerid][autoid][HP] = dini_Int(Autodatei,"HP"); Autos[playerid][autoid][Farbe1] = dini_Int(Autodatei,"Farbe1"); Autos[playerid][autoid][Farbe2] = dini_Int(Autodatei,"Farbe2"); Autos[playerid][autoid][Paintjob] = dini_Int(Autodatei,"Paintjob"); Autos[playerid][autoid][Nummernschild] = dini_Int(Autodatei,"Nummernschild"); Autos[playerid][autoid][posx] = dini_Int(Autodatei,"posx"); Autos[playerid][autoid][posy] = dini_Int(Autodatei,"posy"); Autos[playerid][autoid][posz] = dini_Int(Autodatei,"posz"); Autos[playerid][autoid][posa] = dini_Int(Autodatei,"posa"); Autos[playerid][autoid][Spoiler] = dini_Int(Autodatei,"Spoiler"); Autos[playerid][autoid][Wheels] = dini_Int(Autodatei,"Wheels"); Autos[playerid][autoid][Nitro] = dini_Int(Autodatei,"Nitro"); Autos[playerid][autoid][Roof] = dini_Int(Autodatei,"Roof"); Autos[playerid][autoid][Hood] = dini_Int(Autodatei,"Hood"); Autos[playerid][autoid][Sideskirt] = dini_Int(Autodatei,"Sideskirt"); Autos[playerid][autoid][Lamps] = dini_Int(Autodatei,"Lamps"); Autos[playerid][autoid][Exhaust] = dini_Int(Autodatei,"Exhaust"); Autos[playerid][autoid][Stereo] = dini_Int(Autodatei,"Stereo"); Autos[playerid][autoid][Hydraulics] = dini_Int(Autodatei,"Hydraulics"); Autos[playerid][autoid][VentRight] = dini_Int(Autodatei,"VentRight"); Autos[playerid][autoid][VentLeft] = dini_Int(Autodatei,"VentLeft"); Autos[playerid][autoid][FrontBumper] = dini_Int(Autodatei,"FrontBumper"); Autos[playerid][autoid][RearBumper] = dini_Int(Autodatei,"RearBumper"); } } } } return 1;}


    Moin Moin


    Ich hab ein Problem mit mein derzeitigen FS Autohaus sys
    Das Problem ist folgendes:
    Wenn ich Autos hinzufüge Kommt nur das erste Fahrzeug


    hier der Code


    new Autohaus[1][AHInfo] = {
    {"Los Santos Autohaus", 2131.4858,-1149.5398,24.2522,2148.5422,-1138.8616,25.1576,268.8964, 0, "Staat"}
    };


    new Buycars[10][AKInfo] = {//{CarID,""Name","Autohaus",PREIS,x,y,z}
    {400,"Landstalker","Los Santos Autohaus",2000,2136.5510,-1128.2233,25.6762},
    {402,"Buffalo","Los Santos Autohaus",3000,2136.0598,-1133.0558,25.5218},
    {404,"Perenniel","Los Santos Autohaus",1500,2135.6445,-1138.0363,25.2855},
    {413,"Pony","Los Santos Autohaus",5000,2135.9729,-1143.2456,25.1127},
    {422,"Bobcar","Los Santos Autohaus",2500,2120.9812,-1157.8997,24.1621},
    {442,"Romero","Los Santos Autohaus",3400,2117.1462,-1157.1924,24.1817},
    {478,"Walton","Los Santos Autohaus",1000,2118.1665,-1145.4304,24.6067},
    {496,"Balista Compact","Los Santos Autohaus",3500,2118.2312,-1139.2200,24.7615},
    {500,"Mesa","Los Santos Autohaus",3000,2118.1636,-1134.2207,25.3312},
    {533,"Feltzer","Los Santos Autohaus",2400,2136.0107,-1148.3329,24.1498}
    };


    const MAX_PLAYER_CARS = 2;
    new Autos[MAX_PLAYERS][MAX_PLAYER_CARS][Ainfo];
    new Spielercar[MAX_PLAYERS][MAX_PLAYER_CARS];
    new kaufauto[10];



    Ich Hoffe ihr könnt mir helfenAlso nur der Landstalker wird gespawn der rest nicht und er auch nich in der position die ich gespeichert habe


    Ich hoffe ihr Könnt mir Helfen
    MFG GFJohnny94

    enum SInfo
    {
    Passwort,
    Geld,
    Level,
    Adminlevel,
    Fraktion
    }


    if(strcmp(cmdtext,"/stats",true)==0)
    {
    new string[128];
    new fraktname[64];
    switch(SInfo(playerid,"Fraktion"))
    {
    case 0:(fraktname="Zivi");
    case 1:(fraktname="Feuerwehr");
    case 2:(fraktname="Polizei");
    case 3:(fraktname="Bundeswehr");
    case 4:(fraktname="Fahrschule");
    case 5:(fraktname="Taxi");
    case 6:(fraktname="HellsAngels");
    case 7:(fraktname="GroveStreet");
    case 8:(fraktname="Ballas");
    case 9:(fraktname="Mafia");
    case 10:(fraktname="Terror");
    }
    //1 reihe
    format(string,sizeof(string),"[Name: %s] [Level: %i] [Adminlevel: %i] [Fraktion: %s]",SpielerName(playerid),GetPlayerScore(playerid),SInfo(playerid,"Adminlevel"),fraktname);
    SendClientMessage(playerid,WEISS,string);
    //2 reihe
    return 1;
    }



    stock LoadAccount(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));
    SpielerInfo[playerid][Adminlevel]=dini_Int(Spielerdatei,"Adminlevel");
    SpielerInfo[playerid][Fraktion]=dini_Int(Spielerdatei,"Fraktion");
    return 1;
    }


    stock SpielerSpeichern(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
    dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
    dini_IntSet(Spielerdatei,"Adminlevel",SpielerInfo[playerid][Adminlevel]);
    dini_IntSet(Spielerdatei,"Fraktion",SpielerInfo[playerid][Fraktion]);
    return 1;
    }


    das müsste alles sein was damit zutuen hat

    Hier die error´s



    der Befehl


    if(strcmp(cmdtext,"/stats",true)==0)
    {
    new string[128];
    new fraktname[64];
    switch(SInfo(playerid,"Fraktion"))////zeile 974
    {
    case 0:{fraktname="Zivi";}
    case 1:{fraktname="Fraktname 1";}
    case 2:{fraktname="Fraktname 2";}
    case 3:{fraktname="Fraktname 3";}
    }
    //1 reihe
    format(string,sizeof(string),"[Name: %s] [Level: %i] [Adminlevel: %i] [Fraktion: %s]",SpielerName(playerid),GetPlayerScore(playerid),SInfo(playerid,"Adminlevel"),fraktname);
    SendClientMessage(playerid,WEISS,string);
    //2 reihe
    return 1;
    }


    kann mir jmd helfen?????

    jetzt kommt das



    kann das nicht einer über teamviver machen kriegt ich nit hin

    Also Includes
    #include <a_samp>
    #include <dini>
    #include <sscanf2>


    dcmd def.
    #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
    #pragma tabsize 0


    OnPlayerCammandText
    dcmd(veh,3,cmdtext);
    dcmd(kick,4,cmdtext);
    dcmd(ban,3,cmdtext);
    dcmd(goto,4,cmdtext);
    dcmd(gethere,7,cmdtext);
    dcmd(givemoney,9,cmdtext);


    und ganz unten die Befehle
    dcmd_veh(playerid,params[])
    {
    if(SpielerInfo[playerid][Adminlevel] >= 3)
    {
    new
    ALVL,
    FARBE1,
    FARBE2;
    if(sscanf(params, "iii",ALVL,FARBE1,FARBE2)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Benutze: /veh [CARID] [FARBE1] [FARBE2]");
    }
    new
    ThePlayer[MAX_PLAYER_NAME],
    ADMCAR2;
    GetPlayerName(playerid,ThePlayer,sizeof(ThePlayer));


    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    ADMCAR2 = CreateVehicle(ALVL,X,Y,Z,0,FARBE1,FARBE2,-1);
    SetVehicleNumberPlate(ADMCAR2, "Admin Auto");
    PutPlayerInVehicle(playerid, ADMCAR2,0);
    SendClientMessage(playerid,0xFF6E00FF, "Du hast dir erfolgreich ein Auto Teleportiert");
    }
    else
    {
    SendClientMessage(playerid,0xFF6E00FF,"Du bist kein Admin!");
    }
    return 1;
    }


    dcmd_kick(playerid,params[])
    {
    if(SpielerInfo[playerid][Adminlevel] >= 1)
    {
    new pID;
    if(sscanf(params, "d",pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Benutze: /kick [playerid]");
    }
    if(!IsPlayerConnected(pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Kein Spieler mit angegebener ID Online");
    }
    new
    ThePlayer[MAX_PLAYER_NAME],
    GivePlayer[MAX_PLAYER_NAME],
    string1[128];
    GetPlayerName(pID,GivePlayer,sizeof(GivePlayer));
    GetPlayerName(playerid,ThePlayer,sizeof(ThePlayer));
    Kick(pID);
    format(string1,sizeof(string1),"%s wurde von %s gekickt",GivePlayer,ThePlayer);
    SendClientMessageToAll(0xFF6E00FF,string1);
    }
    else
    {
    SendClientMessage(playerid,0xFF6E00FF,"Du bist kein Admin!");
    }
    return 1;
    }
    dcmd_ban(playerid,params[])
    {
    if(SpielerInfo[playerid][Adminlevel] >= 2)
    {
    new pID;
    if(sscanf(params, "d",pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Benutze: /ban [playerid]");
    }
    if(!IsPlayerConnected(pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Kein Spieler mit angegebener ID Online");
    }
    new
    ThePlayer[MAX_PLAYER_NAME],
    GivePlayer[MAX_PLAYER_NAME],
    string1[128];
    GetPlayerName(pID,GivePlayer,sizeof(GivePlayer));
    GetPlayerName(playerid,ThePlayer,sizeof(ThePlayer));
    Ban(pID);
    format(string1,sizeof(string1),"%s wurde von %s gekickt",GivePlayer,ThePlayer);
    SendClientMessageToAll(0xFF6E00FF,string1);
    }
    else
    {
    SendClientMessage(playerid,0xFF6E00FF,"Du bist kein Admin!");
    }
    return 1;
    }
    dcmd_givemoney(playerid,params[])
    {
    if(SpielerInfo[playerid][Adminlevel] >= 2)
    {
    new
    pID,
    ALVL;
    if(sscanf(params, "di",pID,ALVL)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Benutze: /givemoney [playerid] [GELD]");
    }
    if(!IsPlayerConnected(pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Kein Spieler mit angegebener ID Online");
    }
    new
    ThePlayer[MAX_PLAYER_NAME],
    GivePlayer[MAX_PLAYER_NAME],
    string[128];
    GetPlayerName(pID,GivePlayer,sizeof(GivePlayer));
    GetPlayerName(playerid,ThePlayer,sizeof(ThePlayer));
    GivePlayerMoney(pID, ALVL);
    format(string,sizeof(string)," %s (ID %d) hat von %s (ID %d) Geld, in höhe von %d$ bekommen !",GivePlayer,pID,ThePlayer,playerid,ALVL);
    SendClientMessage(playerid, 0xFF6E00FF,string);
    SendClientMessage(pID, 0xFF6E00FF,string);


    }
    else
    {
    SendClientMessage(playerid,0xFF6E00FF,"Du bist kein Admin!");
    }
    return 1;
    }


    dcmd_goto(playerid,params[])
    {
    if(SpielerInfo[playerid][Adminlevel] >= 1)
    {
    new
    pID;
    if(sscanf(params, "d",pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Benutze: /goto [playerid]");
    }
    if(!IsPlayerConnected(pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Kein Spieler mit angegebener ID Online");
    }
    new
    ThePlayer[MAX_PLAYER_NAME],
    GivePlayer[MAX_PLAYER_NAME],
    string[128],
    Float:XXX,
    Float:YYY,
    Float:ZZZ;
    GetPlayerName(pID,GivePlayer,sizeof(GivePlayer));
    GetPlayerName(playerid,ThePlayer,sizeof(ThePlayer));
    GetPlayerPos(pID, XXX, YYY, ZZZ);
    SetPlayerPos(playerid, XXX, YYY, ZZZ);
    format(string,sizeof(string),"Du hast dich erfolgreich Teleportiert");
    SendClientMessage(playerid, 0xFF6E00FF,string);


    }
    else
    {
    SendClientMessage(playerid,0xFF6E00FF,"Du bist kein Admin!");
    }
    return 1;
    }


    dcmd_gethere(playerid,params[])
    {
    if(SpielerInfo[playerid][Adminlevel] >= 1)
    {
    new
    pID;
    if(sscanf(params, "d",pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Benutze: /gethere [playerid]");
    }
    if(!IsPlayerConnected(pID)) {
    return SendClientMessage(playerid,0xFF6E00FF,"Kein Spieler mit angegebener ID Online");
    }
    new
    ThePlayer[MAX_PLAYER_NAME],
    GivePlayer[MAX_PLAYER_NAME],
    string[128],
    Float:XXX,
    Float:YYY,
    Float:ZZZ;
    GetPlayerName(pID,GivePlayer,sizeof(GivePlayer));
    GetPlayerName(playerid,ThePlayer,sizeof(ThePlayer));
    GetPlayerPos(playerid, XXX, YYY, ZZZ);
    SetPlayerPos(pID, XXX, YYY, ZZZ);
    format(string,sizeof(string),"Du hast jemanden zu dir Teleportiert.");
    SendClientMessage(playerid, 0xFF6E00FF,string);


    }
    else
    {
    SendClientMessage(playerid,0xFF6E00FF,"Du bist kein Admin!");
    }
    return 1;
    }


    Server.cfg


    Wenn die befehle NICHT drine sind (Server_log)


    Wenn sie NICHT drinne sind(Server_log)



    Ich hoffe das mir jetzt welche helfen können