Beiträge von SexyPawnoStyle

    Ja es wir immer noch cniht gespeichert hier der neue Text



    stock SaveAcc(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Acc/%s.txt",name);
    dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
    dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
    dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
    dini_IntSet(Spielerdatei,"warns",GetPVarInt(playerid,"warns"));
    dini_IntSet(Spielerdatei,"mute",GetPVarInt(playerid,"mute"));
    return 1;
    }
    stock LoadAcc(playerid)
    {


    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Acc/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));
    SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));
    SetPVarInt(playerid,"warns",dini_Int(Spielerdatei,"warns"));
    SetPVarInt(playerid,"Mute",dini_Int(Spielerdatei,"Mute"));
    //SpielerInfo[playerid][Adminlevel]=dini_Int(Spielerdatei,"Adminlevel");
    return 1;

    Hallo cih will mute und warn speicher hier
    ocmd:mute(playerid,params[])
    {
    if(IstSpielerAdmin(playerid,1))
    {
    new pID,string[128];
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,Rot,"/mute [Spielername/ID]");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,Rot,"Der Spieler ist nicht online");
    SetPVarInt(pID,"Mute",1);
    format(string,sizeof(string),"AdmCmd: Du wurdest von Admin %s gemutet",SpielerName(playerid));
    SendClientMessage(pID,Rot,string);
    format(string,sizeof(string),"AdmCmd: Du hast erfolgreich User %s gemutet",SpielerName(pID));
    SendClientMessage(playerid,Rot,string);
    return 1;
    }
    return 1;
    }
    ocmd:unmute(playerid,params[])
    {
    if(IstSpielerAdmin(playerid,1))
    {
    new string[128];
    new pID;
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,Rot,"/unmute [Spielername/ID]");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,Rot,"Der Spieler ist nicht online");
    SetPVarInt(pID,"Mute",0);
    format(string,sizeof(string),"AdmCmd: Du wurdest von Admin %s entmutet",SpielerName(playerid));
    SendClientMessage(pID,Rot,string);
    format(string,sizeof(string),"AdmCmd: Du hast erfolgreich User %s entmutet",SpielerName(pID));
    SendClientMessage(playerid,Rot,string);
    return 1;
    }
    return 1;
    }
    ocmd:unwarn(playerid,params[])
    {
    if(IstSpielerAdmin(playerid,1))
    {
    new pID,warns,reason[128],string[128],string1[128];
    if(sscanf(params,"uds",pID,warns,reason))return SendClientMessage(playerid,Rot,"/unwarn [Spielername/ID] [Anzahl] [Grund]");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,Rot,"Der Spieler ist nicht online");
    format(string,sizeof(string),"AdmCmd: Du hast erfolgreich User %s Warn(s) entfernt (%i)",SpielerName(pID),warns);
    SendClientMessage(playerid,Rot,string);
    SetPVarInt(pID,"warns",GetPVarInt(pID,"warns")-warns);
    format(string1,sizeof(string1),"AdmCmd: Admin %s hat dir %i Warns entfernt. Grund: %s",SpielerName(playerid),warns,reason);
    SendClientMessage(pID,Rot,string1);
    return 1;
    }
    return 1;
    }
    ocmd:warn(playerid,params[])
    {
    if(IstSpielerAdmin(playerid,1))
    {
    new pID,warns,reason[128],string[128],string1[128],ban[128];
    if(sscanf(params,"uds",pID,warns,reason))return SendClientMessage(playerid,Rot,"/warn [Spielername/ID] [Anzahl] [Grund]");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,Rot,"Der Spieler ist nicht online");
    if(warns<1||warns>5)return SendClientMessage(playerid, Rot, "Bitte gültige Anzahl der Verwarnungen angeben(1-5)!");
    format(string,sizeof(string),"AdmCmd: Du hast erfolgreich User %s mit %i Warns verwarnt",SpielerName(pID),warns);
    SendClientMessage(playerid,Rot,string);
    SetPVarInt(pID,"warns",GetPVarInt(pID,"warns")+warns);
    //Text der an pID gesendet wird
    format(string1,sizeof(string1),"------------ Verwarnung ------------");
    SendClientMessage(pID,Rot,string1);
    format(string1,sizeof(string1),"Erhalten von: %s",SpielerName(playerid));
    SendClientMessage(pID,Rot,string1);
    format(string1,sizeof(string1),"Anzahl: %i",warns);
    SendClientMessage(pID,Rot,string1);
    format(string1,sizeof(string1),"Verwarnungen: %i/5",GetPVarInt(pID,"warns"));
    SendClientMessage(pID,Rot,string1);
    format(string1,sizeof(string1),"Grund: %s",reason);
    SendClientMessage(pID,Rot,string1);
    format(string1,sizeof(string1),"------------ Verwarnung ------------");
    SendClientMessage(pID,Rot,string1);
    if(GetPVarInt(pID,"warns")==5)
    {
    SendClientMessage(pID,Rot,"AdmCmd: Du hast fünf oder mehr Verwarnungen erhalten und wirst deswegen gebannt");
    format(ban,sizeof(ban),"AdmCmd: %s wurde aufgrund seiner Verwarnungen gebannt (5/5)",SpielerName(pID));
    SendClientMessageToAll(Rot,ban);
    SetPVarInt(pID,"Banned",1);
    Kick(pID);
    }
    return 1;
    }
    return 1;
    }




    stocks
    stock SaveAcc(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Acc/%s.txt",name);
    dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
    dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
    dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
    SetPVarInt(playerid,"warns",dini_Int(Spielerdatei,"warns"));
    SetPVarInt(playerid,"Mute",dini_Int(Spielerdatei,"Mute"));
    return 1;
    }
    stock LoadAcc(playerid)
    {


    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Acc/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));
    SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));
    SetPVarInt(playerid,"warns",dini_Int(Spielerdatei,"warns"));
    SetPVarInt(playerid,"Mute",dini_Int(Spielerdatei,"Mute"));
    //SpielerInfo[playerid][Adminlevel]=dini_Int(Spielerdatei,"Adminlevel");
    return 1;
    }

    Zeile (25) : error 003: declaration of a local variable must appear in a compound block
    Zeile (25) : error 017: undefined symbol "pID"
    Zeile (25) : warning 215: expression has no effect
    Zeile (26) : error 017: undefined symbol "pID"
    Zeile (27) : error 017: undefined symbol "rang"
    Zeile (28) : error 017: undefined symbol "pID"
    Zeile (29) : error 017: undefined symbol "pID"


    6 Errors, 1 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de


    Befel
    ocmd:makeadmin(playerid,params[])
    {
    if(IstSpielerAdmin(playerid,5))
    new pID,rang;
    if(sscanf(params,"ui",pID,rang))return SendClientMessage(playerid,Rot,"SERVER:/makeadmin [Name/ID] [Rang]");
    if(rang<1||rang>5)return SendClientMessage(playerid,Rot,"Bitte gib ein rang von 1-5 an!");
    SetPVarInt(pID,"Adminlevel",rang);
    SaveAcc(pID);
    SendClientMessageToAll(Rot,"A new Admin was Born");
    return 1;
    }

    Zeile (35) : error 017: undefined symbol "string"
    Zeile (35) : error 017: undefined symbol "string"
    Zeile (35) : error 029: invalid expression, assumed zero
    Zeile (35) : fatal error 107: too many error messages on one line


    5 Errors, 0 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de


    Das ist die Zeile 35


    format(string,sizeof(string),"AdmCmd: Du wurdest von Admin %s entmutet",SpielerName(playerid));

    Zeile (296) : error 036: empty statement
    Zeile (302) : warning 225: unreachable code
    Zeile (302) : error 029: invalid expression, assumed zero
    Zeile (308) : warning 225: unreachable code


    2 Errors, 2 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de



    Kriege die Errors im Login Stock
    stock Login(playerid,Key[])
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Acc/%s.txt",name);
    if(!strcmp(Key,dini_Get(Spielerdatei,"Passwort"),true)); //Zeile 296
    {
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    SendClientMessage(playerid,0x1400FFFF,"Successfully Loggingin.");
    return 1;
    }
    else // Zeile 302
    {
    ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Login","Input a Passwort","Register","Abort");
    SendClientMessage(playerid,0xFF4600FF,"Input your right Password!");
    return 1;
    }
    return 1;// Zeile 308
    }

    Jetz hab ich das Problem meine Pickups spawn nicht hier Code


    new rep;
    new nitro;


    public OnGameModeInit()
    {

    SetGameModeText("Map");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddStaticVehicle(405,1783.19995117,-8985.40039062,2.50000000,0.00000000,98,68); //Sentinel
    CreateObject(8838,1795.69995117,-8982.70019531,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgehshade01_lvs) (1)
    CreateObject(3458,1793.59997559,-8987.09960938,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (1)
    CreateObject(3458,1768.90002441,-8987.09960938,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (2)
    CreateObject(3458,1831.90002441,-8987.09960938,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (3)
    CreateObject(1407,1851.90002441,-8987.09960938,2.29999995,0.00000000,0.00000000,270.00000000); //object(dyn_f_r_wood_1) (1)
    CreateObject(1407,1849.40002441,-8989.50000000,2.29999995,0.00000000,0.00000000,0.00000000); //object(dyn_f_r_wood_1) (2)
    CreateObject(1407,1849.59997559,-8984.59960938,2.29999995,0.00000000,0.00000000,0.00000000); //object(dyn_f_r_wood_1) (3)
    CreateObject(1407,1751.00000000,-8989.59960938,2.29999995,0.00000000,0.00000000,0.00000000); //object(dyn_f_r_wood_1) (4)
    CreateObject(1407,1751.00000000,-8984.59960938,2.29999995,0.00000000,0.00000000,0.00000000); //object(dyn_f_r_wood_1) (5)
    CreateObject(1407,1748.80004883,-8987.00000000,2.29999995,0.00000000,0.00000000,270.00000000); //object(dyn_f_r_wood_1) (6)
    CreateObject(3458,1801.00000000,-8999.50000000,0.00000000,0.00000000,0.00000000,318.00000000); //object(vgncarshade1) (4)
    CreateObject(3458,1796.30004883,-8997.50000000,0.00000000,0.00000000,0.00000000,34.00000000); //object(vgncarshade1) (5)
    CreateObject(3458,1796.59997559,-9013.09960938,0.00000000,0.00000000,0.00000000,354.00000000); //object(vgncarshade1) (6)
    CreateObject(3458,1760.40002441,-9008.70019531,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (7)
    CreateObject(3458,1752.80004883,-9026.79980469,0.00000000,0.00000000,0.00000000,300.00000000); //object(vgncarshade1) (8)
    CreateObject(3458,1780.50000000,-9044.40039062,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (9)
    CreateObject(3458,1819.69995117,-9044.50000000,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgncarshade1) (10)
    CreateObject(8838,1804.00000000,-9047.79980469,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgehshade01_lvs) (2)
    CreateObject(3458,1840.19995117,-9044.50000000,0.00000000,0.00000000,328.00000000,0.00000000); //object(vgncarshade1) (11)
    CreateObject(1407,1841.00000000,-9041.79980469,2.90000010,0.00000000,322.00000000,0.00000000); //object(dyn_f_r_wood_1) (7)
    CreateObject(1407,1844.59997559,-9042.00000000,5.09999990,0.00000000,324.00000000,0.00000000); //object(dyn_f_r_wood_1) (8)
    CreateObject(1407,1848.19995117,-9042.09960938,7.59999990,0.00000000,324.00000000,358.00000000); //object(dyn_f_r_wood_1) (9)
    CreateObject(1407,1841.40002441,-9047.00000000,3.40000010,0.00000000,328.00000000,0.00000000); //object(dyn_f_r_wood_1) (10)
    CreateObject(1407,1845.30004883,-9047.00000000,5.80000019,0.00000000,328.00000000,2.00000000); //object(dyn_f_r_wood_1) (11)
    CreateObject(1407,1848.30004883,-9047.00000000,7.59999990,0.00000000,334.00000000,6.00000000); //object(dyn_f_r_wood_1) (12)
    CreateObject(8838,1775.69995117,-9047.79980469,0.00000000,0.00000000,0.00000000,0.00000000); //object(vgehshade01_lvs) (3)
    CreateObject(8838,1858.80004883,-9035.50000000,10.60000038,0.00000000,2.00000000,270.00000000); //object(vgehshade01_lvs) (4)
    CreateObject(3458,1842.69995117,-9021.59960938,0.00000000,0.00000000,328.00000000,358.00000000); //object(vgncarshade1) (12)
    CreateObject(3458,1827.40002441,-9017.20019531,0.00000000,0.00000000,0.00000000,344.00000000); //object(vgncarshade1) (13)
    rep = CreatePickup(1239,1,1858.8531,-9021.0557,13.6359,1);
    nitro=CreatePickup(1239,1,1859.0742,-9049.2002,12.6531,1);
    Create3DTextLabel("{#00FF1E}[{#000000}Repair{#00FF1E}]", 0x008080FF, 1858.8531,-9021.0557,13.6359,1,0);
    return 1;
    }


    OnPlayerPickup


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == rep)
    {
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
    }

    if(pickupid==nitro)
    {
    AddVehicleComponent(1010);
    return 1;
    }
    return 1;
    }