Beiträge von Dr. Frauenarzt

    CMD:fahrrad(playerid)
    {
    if(IsPlayerInRangeOfPoint(playerid,30.0,1773.0819,-1896.1542,13.5516))
    {
    if(Mietfahrrad[playerid] != 0)return SendClientMessage(playerid, 0xAA3333AA,"Du hast dir bereits ein Fahrrad gemietet!"); //782
    if(GetPlayerScore(playerid) > 4)return SendClientMessage(playerid, 0xAA3333AA,"Du kannst dir kein Fahrrad mieten, da du über Level 4 bist!");
    Mietfahrrad[playerid] = CreateVehicle(481, 1778.7252, -1896.2073, 12.8533, 267.3409,-1,-1,100);
    GivePlayerMoney(playerid, -300);
    }
    return true;
    }


    C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(782) : error 017: undefined symbol "Mietfahrrad"
    C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(782) : warning 215: expression has no effect
    C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(782) : error 001: expected token: ";", but found "]"
    C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(782) : error 029: invalid expression, assumed zero
    C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(782) : fatal error 107: too many error messages on one line

    stock CreateFraktionsVehicle(vehiclemodelid,fraktid,Float:xpos,Float:ypos,Float:zpos,vworld,interior,Float:angle,respawntime,preis)
    {
    new queryone[450],querytwo[300],mainquery[800];
    for(new fv;fv<MAX_FVEHS;fv++)
    {
    if(Fahrzeug[fv][Fraktion] == 0)
    {
    Fahrzeug[fv][Carkey] = fv;
    Fahrzeug[fv][Fraktion] = fraktid;
    Fahrzeug[fv][FraktionsRang] = 0;
    Fahrzeug[fv][modelid] = vehiclemodelid;
    Fahrzeug[fv][Colour1] = FVehicleInfo[fraktid-1][FColor1];
    Fahrzeug[fv][Colour2] = FVehicleInfo[fraktid-1][FColor2];
    Fahrzeug[fv][Paintjob] = -1;
    Fahrzeug[fv][posx] = xpos;
    Fahrzeug[fv][posy] = ypos;
    Fahrzeug[fv][posz] = zpos;
    Fahrzeug[fv][posa] = angle;
    Fahrzeug[fv][Interior] = interior;
    Fahrzeug[fv][VirtualWorld] = vworld;
    Fahrzeug[fv][Spoiler] = 0;
    Fahrzeug[fv][Wheels] = 0;
    Fahrzeug[fv][Nitro] = 0;
    Fahrzeug[fv][Roof] = 0;
    Fahrzeug[fv][Hood] = 0;
    Fahrzeug[fv][Sideskirt] = 0;
    Fahrzeug[fv][Lamps] = 0;
    Fahrzeug[fv][Exhaust] = 0;
    Fahrzeug[fv][Stereo] = 0;
    Fahrzeug[fv][Hydraulics] = 0;
    Fahrzeug[fv][VentRight] = 0;
    Fahrzeug[fv][VentLeft] = 0;
    Fahrzeug[fv][FrontBumper] = 0;
    Fahrzeug[fv][RearBumper] = 0;
    Fahrzeug[fv][Preis] = preis;
    Fahrzeug[fv][HP] = 1000.0;
    Fahrzeug[fv][Tank] = VehicleInfo[vehiclemodelid-400][vtankvolumen];
    format(Fahrzeug[fv][Nummernschild],64,"SA-%s-%i",FVehicleInfo[fraktid-1][FNumbPlate],Fahrzeug[fv][Carkey]);
    Fahrzeug[fv][Vehicle] = CreateVehicleEx(vehiclemodelid,xpos,ypos,zpos,angle,Fahrzeug[fv][Colour1],Fahrzeug[fv][Colour2],respawntime,false);
    LinkVehicleToInterior(Fahrzeug[fv][Vehicle],Fahrzeug[fv][Interior]);
    SetVehicleVirtualWorld(Fahrzeug[fv][Vehicle],Fahrzeug[fv][VirtualWorld]);
    SetVehicleNumberPlate(Fahrzeug[fv][Vehicle],Fahrzeug[fv][Nummernschild]);
    SetVehicleHealth(Fahrzeug[fv][Vehicle],Fahrzeug[fv][HP]);
    GetVehicleParamsEx(Fahrzeug[fv][Vehicle],engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(Fahrzeug[fv][Vehicle],engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
    Fahrzeug[fv][Abgeschlossen] = 1;
    format(queryone,sizeof(queryone),"INSERT INTO `server_ffahrzeuge` (`id`,`Fraktion`,`Rang`,`modelid`,`Farbe1`,`Farbe2`,`Paintjob`,`HP`,`posx`,`posy`,`posz`,`posa`,`Interior`,`VirtualWorld`,`Abgeschlossen`,`Abgeschleppt`,`AbgeschlepptPreis`,`AbgeschlepptGrund`,`Nummernschild`,`Spoiler`,`Hood`,`Roof`,`Sideskirt`,`Lamps`,`Nitro`,`Exhaust`,`Wheels`,`Stereo`,`Hydraulics`,`FrontBumper`,`RearBumper`,`VentRight`,`VentLeft`,`KaufPreis`,`Motorschaden`,`Tank`)");
    format(querytwo,sizeof(querytwo),"VALUES ('%d','%d','%d','%d','%d','%d','%d','%f','%f','%f','%f','%f','%d','%d','%d','0','0','NONE','%s','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','0','%f')",
    Fahrzeug[fv][Carkey],Fahrzeug[fv][Fraktion],Fahrzeug[fv][FraktionsRang],Fahrzeug[fv][modelid],Fahrzeug[fv][Colour1],Fahrzeug[fv][Colour2],Fahrzeug[fv][Paintjob],Fahrzeug[fv][HP],Fahrzeug[fv][posx],Fahrzeug[fv][posy],Fahrzeug[fv][posz],Fahrzeug[fv][posa],Fahrzeug[fv][Interior],Fahrzeug[fv][VirtualWorld],Fahrzeug[fv][Abgeschlossen],Fahrzeug[fv][Nummernschild],Fahrzeug[fv][Spoiler],Fahrzeug[fv][Hood],Fahrzeug[fv][Roof],Fahrzeug[fv][Sideskirt],Fahrzeug[fv][Lamps],
    Fahrzeug[fv][Nitro],Fahrzeug[fv][Exhaust],Fahrzeug[fv][Wheels],Fahrzeug[fv][Stereo],Fahrzeug[fv][Hydraulics],Fahrzeug[fv][FrontBumper],Fahrzeug[fv][RearBumper],Fahrzeug[fv][VentRight],Fahrzeug[fv][VentLeft],Fahrzeug[fv][Preis],Fahrzeug[fv][Tank]);
    format(mainquery,sizeof(mainquery),"%s%s",queryone,querytwo);
    mysql_function_query(MySQL_R394,mainquery,false,"","");
    return fv;
    }
    }
    return 1;
    }
    stock SaveOnlyOneFveh(fv)
    {
    new mainquery[900],query[400];
    if(Fahrzeug[fv][modelid] != 0)
    {
    GetVehiclePos(Fahrzeug[fv][Vehicle],Fahrzeug[fv][posx],Fahrzeug[fv][posy],Fahrzeug[fv][posz]);
    GetVehicleHealth(Fahrzeug[fv][Vehicle],Fahrzeug[fv][HP]);
    format(query,sizeof(query),"UPDATE server_ffahrzeuge SET Fraktion='%d',Rang='%d',modelid='%d',Farbe1='%d',Farbe2='%d',Paintjob='%d',HP='%f',posx='%f',posy='%f',posz='%f',posa='%f',Abgeschlossen='%d',Abgeschleppt='%d',Interior='%d',VirtualWorld='%d',",
    Fahrzeug[fv][Fraktion],Fahrzeug[fv][FraktionsRang],Fahrzeug[fv][modelid],Fahrzeug[fv][Colour1],Fahrzeug[fv][Colour2],Fahrzeug[fv][Paintjob],Fahrzeug[fv][HP],Fahrzeug[fv][posx],Fahrzeug[fv][posy],Fahrzeug[fv][posz],Fahrzeug[fv][posa],Fahrzeug[fv][Abgeschlossen],vFahrzeug[Fahrzeug[fv][Vehicle]][Abgeschleppt],Fahrzeug[fv][Interior],Fahrzeug[fv][VirtualWorld]);
    strcat(mainquery,query);
    format(query,sizeof(query),"AbgeschlepptPreis='%d',AbgeschlepptGrund='%s',Nummernschild='%s',Neon='%d',Spoiler='%d',Hood='%d',Roof='%d',Sideskirt='%d',Lamps='%d',Nitro='%d',Exhaust='%d',Wheels='%d',Stereo='%d',Hydraulics='%d',FrontBumper='%d',RearBumper='%d',VentRight='%d',VentLeft='%d',",
    vFahrzeug[Fahrzeug[fv][Vehicle]][AbgeschlepptPreis],vFahrzeug[Fahrzeug[fv][Vehicle]][AbgeschlepptGrund],Fahrzeug[fv][Nummernschild],vFahrzeug[Fahrzeug[fv][Vehicle]][Neon],Fahrzeug[fv][Hood],Fahrzeug[fv][Roof],Fahrzeug[fv][Sideskirt],Fahrzeug[fv][Lamps],Fahrzeug[fv][Nitro],Fahrzeug[fv][Exhaust],Fahrzeug[fv][Wheels],
    Fahrzeug[fv][Stereo],Fahrzeug[fv][Hydraulics],Fahrzeug[fv][FrontBumper],Fahrzeug[fv][RearBumper],Fahrzeug[fv][VentRight],Fahrzeug[fv][VentLeft]);
    strcat(mainquery,query);
    format(query,sizeof(query),"KaufPreis='%d',Motorschaden='%d',FailGas='%d',Tank='%f',Kilometerstand='%d',KofferraumGanja='%d',KofferraumKokain='%d',KofferraumMaterials='%d',KofferraumOpium='%d',KofferraumSpice='%d',KofferraumLunchpakete='%d',KofferraumC4='%d',KofferraumWerkzeugkasten='%d',KofferraumBenzinkanister='%d',Handbremse='%d' WHERE id='%d'",
    Fahrzeug[fv][Preis],MotorDown[Fahrzeug[fv][Vehicle]],vFahrzeug[Fahrzeug[fv][Vehicle]][FailGas],vFahrzeug[Fahrzeug[fv][Vehicle]][Tank],vFahrzeug[Fahrzeug[fv][Vehicle]][Kilometer],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumGanja],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumKokain],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumMaterials],
    vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumOpium],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumSpice],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumLunchpakete],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumC4],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumWerkzeugkasten],vFahrzeug[Fahrzeug[fv][Vehicle]][KofferraumBenzinkanister],vFahrzeug[Fahrzeug[fv][Vehicle]][Handbremse],Fahrzeug[fv][Carkey]);
    strcat(mainquery,query);
    mysql_function_query(MySQL_R394,mainquery,false,"","");
    strdel(mainquery,0,sizeof(mainquery));
    strdel(query,0,sizeof(query));
    printf("- Fraktionsfahrzeug %d gespeichert -",fv);
    }
    return 1;
    }




    Hallo ich wollte fragen wie lasse ich die Sirene 19420 bei der Fraktion Sanitäter und Ordnungsamt beim erstellen der Fraktions cars gleich drauf machen kann mir da jemand eventuell helfen bitte?


    //E: Für Sultan


    COMMAND:erstellen(playerid,params[])
    {
    if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,SAMP_ROT,""ACCINFO"Du hast keine erlaubnis diesen Befehl benutzen zu drüfen.");
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,SAMP_WEISS,""ACCINFO"Du bist nicht eingeloggt!");
    if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,SAMP_WEISS,""#HTML_BLAU"Verwendung:"#HTML_WEISS" /back");
    if(Spieler[playerid][pInPrison] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist im Prison.");
    if(Spieler[playerid][pFriedhof] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist nicht in der Lage zu schrieben.");
    if(Spieler[playerid][pDeath] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist verletzt.");
    if(Spieler[playerid][pJailed] != 0)return SendClientMessage(playerid,SAMP_WEISS,"Du bist im Gefängnis.");
    if(Spieler[playerid][pTazerd] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist K.O/getazert.");
    if(Spieler[playerid][pCuffed] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist gefesselt.");
    new cmd[25],query[256];
    if(!isPlayerAnAdmin(playerid,6))return SendClientMessage(playerid,SAMP_ROT,""ACCINFO"Du bist kein Admin Mitglied oder hast nicht den erforderlichen Rang.");
    if(sscanf(params,"s[25]",cmd))return SendClientMessage(playerid,SAMP_WEISS,""#HTML_BLAU"Benutze:"#HTML_WEISS"/erstellen [Haus/Business]");
    if(strcmp(cmd,"Haus",true) == 0)
    {
    for(new haus=1;haus<MAX_HAUS;haus++)
    {
    if(HausInfo[haus][hauscreatet] != 1)
    {
    format(query,sizeof(query),"INSERT INTO server_haus (id) VALUES ('%d')",haus);
    mysql_function_query(MySQL_R394,query,false,"","");
    MakeHaus[playerid] = haus;
    GetPlayerPos(playerid,HausInfo[haus][haus_x],HausInfo[haus][haus_y],HausInfo[haus][haus_z]);
    HausInfo[haus][hauscreatet] = 1;
    strmid(HausInfo[haus][haus_besitzer],"Niemand",0,strlen("Niemand"),24);
    strmid(HausInfo[haus][haus_beschreibung],"Keine",0,strlen("Keine"),150);
    strmid(HausInfo[haus][haus_msg],"Keine",0,strlen("Keine"),150);
    HausInfo[haus][haus_Owned] = 0;
    HausInfo[haus][haus_innenraum] = 255;
    HausInfo[haus][haus_miete] = 0;
    HausInfo[haus][haus_locked] = 1;
    HausInfo[haus][haus_slots] = 0;
    HausInfo[haus][haus_eingemitetenzaehler] = 0;
    HausInfo[haus][haus_preis] = 0;
    HausInfo[haus][haus_level] = 0;
    HausInfo[haus][haus_geldkasse] = 0;
    HausInfo[haus][haus_Opium] = 0;
    HausInfo[haus][haus_Spice] = 0;
    HausInfo[haus][haus_c4] = 0;
    HausInfo[haus][haus_Ganja] = 0;
    HausInfo[haus][haus_Kokain] = 0;
    HausInfo[haus][haus_materials] = 0;
    HausInfo[haus][haus_heal] = 0;
    HausInfo[haus][haus_armour] = 0;
    HausInfo[haus][haus_hatheal] = 0;
    HausInfo[haus][haus_hatarmour] = 0;
    HausInfo[haus][hausmull] = 0;
    HausLabel[haus] = CreateDynamic3DTextLabel("HAUS ERSTELLUNG",HAUSCOLOR,HausInfo[haus][haus_x],HausInfo[haus][haus_y],HausInfo[haus][haus_z] +1,20.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0);
    HausInfo[haus][haus_pickup] = CreateDynamicPickup(Server_Haus_Frei_Pickup,1,HausInfo[haus][haus_x],HausInfo[haus][haus_y],HausInfo[haus][haus_z]);
    ShowPlayerDialog(playerid,HCREATE_DIALOG_PREIS,DIALOG_STYLE_INPUT,"Hauserstellung Schritt 1","Gib den Preis an,\nfür den das Haus zum verkauf freigestellt werden soll:","Weiter","Haus löschen");
    return 1;
    }
    }
    return SendClientMessage(playerid,SAMP_WEISS,"Die maximale Anzahl an erstellten Häusern ist erreicht!");
    }
    if(strcmp(cmd,"Business",true) == 0)
    {
    for(new biz=1;biz<MAX_BIZ;biz++)
    {
    if(BizInfo[biz][bizcreatet] != 1)
    {
    format(query,sizeof(query),"INSERT INTO server_bizes (id) VALUES ('%d')",biz);
    mysql_function_query(MySQL_R394,query,false,"","");
    MakeBiz[playerid] = biz;
    GetPlayerPos(playerid,BizInfo[biz][biz_x],BizInfo[biz][biz_y],BizInfo[biz][biz_z]);
    BizInfo[biz][bizcreatet] = 1;
    strmid(BizInfo[biz][biz_besitzer],"Niemand",0,strlen("Niemand"),24);
    strmid(BizInfo[biz][biz_teilhaber],"Niemand",0,strlen("Niemand"),24);
    strmid(BizInfo[biz][biz_beschreibung],"Keine",0,strlen("Keine"),150);
    BizInfo[biz][biz_Owned] = 0;
    for(new i=0;i<15;i++) BizInfo[biz][biz_artikel][i] = 0;
    BizLabel[biz][0] = CreateDynamic3DTextLabel("BUSINESS ERSTELLUNG",SAMP_WEISS,BizInfo[biz][biz_x],BizInfo[biz][biz_y],BizInfo[biz][biz_z] +1,20.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0);
    BizInfo[biz][biz_pickup][0] = CreateDynamicPickup(Server_Business_Frei_Pickup,1,BizInfo[biz][biz_x],BizInfo[biz][biz_y],BizInfo[biz][biz_z],-1);
    ShowPlayerDialog(playerid,BIZ_ERSTELLEN_DIALOG_BIZART,DIALOG_STYLE_LIST,"Bizerstellung [Art]","Ammunation\n24/7 Market\nClucking Bell\nBurger Shot\nHandyladen\nWell Staked Pizza\nClub\nDonut Laden\nRestaurant\nTankstelle\nFahrzeugvermietung\nPaintball-Arena\nHotel/Motel\nBase-Jump Business\nKart Business","Weiter","Buisness löschen");
    return 1;
    }
    }
    return SendClientMessage(playerid,SAMP_WEISS,"Die maximale Anzahl an erstellten Businessen ist erreicht!");
    }
    if(strcmp(cmd,"Schwarzmarkt",true) == 0)
    {
    for(new sm=1;sm<MAX_SMARKETS;sm++)
    {
    if(SmarkInfo[sm][screatet] != 1)
    {
    format(query,sizeof(query),"INSERT INTO server_schwarzmarkt (id) VALUES ('%d')",sm);
    mysql_function_query(MySQL_R394,query,false,"","");
    MakeSmarkt[playerid] = sm;
    GetPlayerPos(playerid,SmarkInfo[sm][sx],SmarkInfo[sm][sy],SmarkInfo[sm][sz]);
    SmarkInfo[sm][screatet] = 1;
    strmid(SmarkInfo[sm][swerbetext],"Keine",0,strlen("Keine"),64);
    SmarkInfo[sm][sartikel][0] = 60;
    SmarkInfo[sm][sartikel][1] = 20;
    SmarkInfo[sm][sartikel][2] = 150;
    SmarkInfo[sm][sartikel][3] = 120;
    SmarkInfo[sm][sartikel][4] = 400;
    SmarkInfo[sm][sartikel][5] = 350;
    SmarkInfo[sm][sartikel][6] = 550;
    SmarkInfo[sm][sartikel][7] = 1250;
    SmarkInfo[sm][sartikel][8] = 1399;
    SmarkInfo[sm][sartikel][9] = 2001;
    SmarkInfo[sm][sartikel][10] = 2565;
    SmarkInfo[sm][sartikel][11] = 100;
    SmarkInfo[sm][sartikel][12] = 4997;
    SmarkInfo[sm][sattackerfraktid] = 0;
    SmarkInfo[sm][swarownerpoints] = 0;
    SmarkInfo[sm][swarattackerpoints] = 0;
    SmarkInfo[sm][swartime] = 0;
    SmarkInfo[sm][swarsleep] = 0;
    SmarktLabel[sm] = CreateDynamic3DTextLabel("SCHWARZMARKT ERSTELLUNG",SMARKCOLOR,SmarkInfo[sm][sx],SmarkInfo[sm][sy],SmarkInfo[sm][sz] +1,20.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0);
    for(new i=0;i<sizeof(sBuyInfo);i++){ SmartkWaffenLabel[sm][i] = CreateDynamic3DTextLabel(sBuyInfo[i][sbuyweaponname],SMARKWEAPONCOLOR,sBuyInfo[i][sbuyx],sBuyInfo[i][sbuyy],sBuyInfo[i][sbuyz],1.5,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,sm); }
    SmarkInfo[sm][spickup] = CreateDynamicPickup(OWNEDSMARKTPICKUP,1,SmarkInfo[sm][sx],SmarkInfo[sm][sy],SmarkInfo[sm][sz],0);
    ShowPlayerDialog(playerid,SCREATE_DIALOG_PREIS,DIALOG_STYLE_INPUT,"Smarkterstellung Schritt 1","Gib den Preis an,\nfür den der Schwarzmarkt zum verkauf freigestellt werden soll:","Weiter","Smarkt löschen");
    return 1;
    }
    }
    return SendClientMessage(playerid,SAMP_WEISS,"Die maximale Anzahl an erstellten Schwarzmärkten ist erreicht!");
    }
    if(strcmp(cmd,"Gutschein",true) == 0)
    {
    for(new g=1;g<MAX_GUTSCHEIN;g++)
    {
    if(Gutschein[g][gutscheincreatet] != 1)
    {
    format(query,sizeof(query),"INSERT INTO server_gutscheine (id) VALUES ('%d')",g);
    mysql_function_query(MySQL_R394,query,false,"","");
    MakeGutschein[playerid] = g;
    Gutschein[g][gutscheincreatet] = 1;
    strmid(Gutschein[g][gutscheincode],"Unbekannt",0,strlen("Unbekannt"),16);
    strmid(Gutschein[g][gutscheinname],"Unbekannt",0,strlen("Unbekannt"),32);
    strmid(Gutschein[g][gutscheindesc],"Unbekannt",0,strlen("Unbekannt"),64);
    Gutschein[g][gutscheintyp] = 0;
    Gutschein[g][gutscheinmenge] = 0;
    Gutschein[g][gutscheinanzahl] = 0;
    ShowPlayerDialog(playerid,GUTSCHEIN_CREATE_CODE,DIALOG_STYLE_INPUT,"Gutscheinerstellung Schritt 1","Gib deinen Gutscheincode ein:","Weiter","Gutschein löschen");
    return 1;
    }
    }
    return SendClientMessage(playerid,SAMP_WEISS,"Die maximale Anzahl an erstellten Gutscheinen ist erreicht!");
    }
    return SendClientMessage(playerid,SAMP_WEISS,""#HTML_BLAU"Benutze:"#HTML_WEISS"/erstellen [Haus/Business/Schwarzmarkt/Gutschein]");
    }



    So erstelle ich den Gutschein


    COMMAND:gutschein(playerid,params[])
    {
    #pragma unused params
    if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,SAMP_ROT,""ACCINFO"Du hast keine erlaubnis diesen Befehl benutzen zu drüfen.");
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,SAMP_WEISS,""ACCINFO"Du bist nicht eingeloggt!");
    if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,SAMP_WEISS,""#HTML_BLAU"Verwendung:"#HTML_WEISS" /back");
    if(Spieler[playerid][pInPrison] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist im Prison.");
    if(Spieler[playerid][pFriedhof] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist nicht in der Lage zu schrieben.");
    if(Spieler[playerid][pDeath] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist verletzt.");
    if(Spieler[playerid][pJailed] != 0)return SendClientMessage(playerid,SAMP_WEISS,"Du bist im Gefängnis.");
    if(Spieler[playerid][pTazerd] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist K.O/getazert.");
    if(Spieler[playerid][pCuffed] == 1)return SendClientMessage(playerid,SAMP_WEISS,"Du bist gefesselt.");
    if(Spieler[playerid][pGutschein] != 0)return SendClientMessage(playerid,SAMP_WEISS,"Du hast schon bereits einen Gutschein verwendet.");
    ShowPlayerDialog(playerid,DIALOG_GUTSCHEIN,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Gutschein","{C9C9C9}Gib deinen Gutscheincode ein:","Absenden","Abbrechen");
    return 1;
    }


    Hallo... wen ich ein Gutschein erstelle und der User /gutschein eingibt steht Du hast schon beretits einen Gutschein verwendet. obwohl es nicht so ist?

    http://www.file-upload.net/dow…012252/mysql_log.txt.html



    //E:



    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team


    [12:40:32] mapname = "San Andreas" (string)
    [12:40:32]
    [12:40:32] Server Plugins
    [12:40:32] --------------
    [12:40:32] Loading plugin: mysql.so
    [12:40:32]


    > MySQL plugin R5 successfully loaded.


    [12:40:32] Loaded.
    [12:40:32] Loading plugin: streamer.so
    [12:40:32]


    *** Streamer Plugin v2.8.2 by Incognito loaded ***


    [12:40:32] Loaded.
    [12:40:32] Loading plugin: nativechecker.so
    [12:40:32] Loaded.
    [12:40:32] Loading plugin: sscanf.so
    [12:40:32]


    [12:40:32] ===============================


    [12:40:32] sscanf plugin loaded.


    [12:40:32] Version: 2.8.1


    [12:40:32] (c) 2012 Alex "Y_Less" Cole


    [12:40:32] ===============================


    [12:40:32] Loaded.
    [12:40:32] Loading plugin: filemanager.so
    [12:40:32] ******************
    [12:40:32] ** FILE MANAGER **
    [12:40:32] ** Loaded **
    [12:40:32] ** Version 1.1 **
    [12:40:32] ******************
    [12:40:32] Loaded.
    [12:40:32] Loaded 5 plugins.


    [12:40:32]
    [12:40:32] Ban list
    [12:40:32] --------
    [12:40:32] Loaded: samp.ban
    [12:40:32]
    [12:40:32]
    [12:40:32] Filterscripts
    [12:40:32] ---------------
    [12:40:32] Loaded 0 filterscripts.


    [12:40:32] Error: Function not registered: 'SSCANF_Init'
    [12:40:32] Error: Function not registered: 'SSCANF_Join'
    [12:40:32] Error: Function not registered: 'SSCANF_Leave'
    [12:40:32] Error: Function not registered: 'sscanf'
    [12:40:32] Error: Function not registered: 'dir_exists'
    [12:40:32] Error: Function not registered: 'dir_create'
    [12:40:32] Error: Function not registered: 'file_write'
    [12:40:32] SERVER: Der Server wurde erfolgreich gestartet
    [12:40:32] SERVER: Versucht die Verbindung zur Datenbank aufzubauen
    [12:40:32] OnGamemodeInt: LoadBiz (3ms)
    [12:40:32] OnGamemodeInt: LoadSBiz (4ms)
    [12:40:32] OnGamemodeInt: LoadTankenBiz (13ms)
    [12:40:32] OnGamemodeInt: LoadStuff (5ms)
    [12:40:32] OnGamemodeInt: LoadKassenInfo (0ms)
    [12:40:32] OnGamemodeInt: LoadGangfightZones (0ms)
    [12:40:32] OnGamemodeInt: LoadGangWarInfos (18ms)
    [12:40:32] OnGamemodeInt: LoadGangBNDInfos (1ms)
    [12:40:32] OnGamemodeInt: LoadHauser (0ms)
    [12:40:32] OnGamemodeInt: loadDynamicPickups (0ms)
    [12:40:32] OnGamemodeInt: loadDynamicMapIcons (0ms)
    [12:40:32] OnGamemodeInt: loadDynamicTextLabels (0ms)
    [12:40:32] OnGamemodeInt: loadGangWeapons (0ms)
    [12:40:32] OnGamemodeInt: loadAmmuWeapons (0ms)
    [12:40:32] OnGamemodeInt: loadHausWeapons (0ms)
    [12:40:32] OnGamemodeInt: LoadFactionVehicles (1ms)
    [12:40:32] Totaltime taken to load MySQL Stuffs: 45sm
    [12:40:32] Beginne Autos zu spawnen
    [12:40:32] Autos wurden erfolgreich Geladen und Gespawnt
    [12:40:32] 3DTexte erfolgreich Geladen
    [12:40:32]
    [12:40:32]
    [12:40:32] Westbound-Reallife
    [12:40:32] _____________________
    [12:40:32] Westbound-Reallife erfolgreich geladen!
    [12:40:32]
    [12:40:32] Number of vehicle models: 61
    [12:40:32] [connection] 87.98.244.35:54783 requests connection cookie.
    [12:40:32] [connection] 87.98.244.35:44148 requests connection cookie.
    [12:40:32] [connection] 87.98.244.35:48969 requests connection cookie.
    [12:40:32] [connection] 87.98.244.35:35231 requests connection cookie.
    [12:40:32] [connection] 87.98.244.35:36682 requests connection cookie.
    [12:40:33] [connection] 87.98.244.35:55559 requests connection cookie.
    [12:40:33] [connection] 87.98.244.35:41933 requests connection cookie.
    [12:40:33] [connection] 87.98.244.35:59893 requests connection cookie.
    [12:40:33] [connection] incoming connection: 87.98.244.35:54783 id: 0
    [12:40:33] [connection] incoming connection: 87.98.244.35:44148 id: 1
    [12:40:33] [connection] incoming connection: 87.98.244.35:48969 id: 2
    [12:40:33] [npc:join] Drogendealer has joined the server (0:87.98.244.35)
    [12:40:33] [npc:join] Mitarbeiter has joined the server (1:87.98.244.35)
    [12:40:33] [connection] incoming connection: 87.98.244.35:35231 id: 3
    [12:40:33] [connection] incoming connection: 87.98.244.35:36682 id: 4
    [12:40:33] [npc:join] Coinshop has joined the server (2:87.98.244.35)
    [12:40:34] [connection] incoming connection: 87.98.244.35:55559 id: 5
    [12:40:34] [npc:join] Stadthalle has joined the server (3:87.98.244.35)
    [12:40:34] [connection] incoming connection: 87.98.244.35:41933 id: 6
    [12:40:34] [npc:join] BSN has joined the server (4:87.98.244.35)
    [12:40:34] [connection] incoming connection: 87.98.244.35:59893 id: 7
    [12:40:34] [npc:join] Dimitri has joined the server (5:87.98.244.35)
    [12:40:34] [npc:join] Manfred has joined the server (6:87.98.244.35)
    [12:40:34] [npc:join] Nico has joined the server (7:87.98.244.35)




    [00:16:27] [DEBUG] mysql_tquery - connection handle: 1
    [00:16:27] [ERROR] "mysql_tquery" - invalid connection handle. (ID = 1).
    [00:16:38] [DEBUG] mysql_tquery - connection handle: 1
    [00:16:38] [ERROR] "mysql_tquery" - invalid connection handle. (ID = 1).
    [00:20:02] [DEBUG] mysql_tquery - connection handle: 1
    [00:20:02] [DEBUG] mysql_tquery - scheduling query "SELECT id FROM user WHERE username='Blackshadowscript' "..
    [00:20:02] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - starting query execution
    [00:20:02] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - query was successful
    [00:20:02] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - data being passed to ProcessCallbacks()
    [00:20:02] [DEBUG] Calling callback "OnUserCheck"..
    [00:20:02] [DEBUG] cache_get_data - connection handle: 1
    [00:20:02] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:20:12] [DEBUG] mysql_escape_string - connection handle: 1
    [00:20:12] [DEBUG] mysql_tquery - connection handle: 1
    [00:20:12] [DEBUG] mysql_tquery - scheduling query "INSERT INTO user (username,passwort) VALUES ('Blackshadowscript',MD5('klom19pom')) "..
    [00:20:12] [DEBUG] CMySQLQuery::Execute[()] - starting query execution
    [00:20:12] [DEBUG] CMySQLQuery::Execute[()] - query was successful
    [00:20:12] [DEBUG] CMySQLQuery::Execute[()] - no callback specified, skipping result saving
    [00:20:18] [DEBUG] mysql_tquery - connection handle: 1
    [00:20:18] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM autos WHERE besitzer='0'"..
    [00:20:18] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - starting query execution
    [00:20:18] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - query was successful
    [00:20:18] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - data being passed to ProcessCallbacks()
    [00:20:18] [DEBUG] Calling callback "OnPlayerCarsLoad"..
    [00:20:18] [DEBUG] cache_get_data - connection handle: 1
    [00:20:18] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:21:01] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:01] [DEBUG] mysql_tquery - scheduling query "SELECT id FROM user WHERE username='Blackshadowscript' "..
    [00:21:01] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - starting query execution
    [00:21:01] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - query was successful
    [00:21:01] [DEBUG] CMySQLQuery::Execute[OnUserCheck(i)] - data being passed to ProcessCallbacks()
    [00:21:01] [DEBUG] Calling callback "OnUserCheck"..
    [00:21:01] [DEBUG] cache_get_data - connection handle: 1
    [00:21:01] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:21:09] [DEBUG] mysql_escape_string - connection handle: 1
    [00:21:09] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:09] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM user WHERE username='Blackshadowscript' AND passwort=MD5('klom19pom')"..
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse(i)] - starting query execution
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse(i)] - query was successful
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse(i)] - data being passed to ProcessCallbacks()
    [00:21:09] [DEBUG] Calling callback "OnPasswordResponse"..
    [00:21:09] [DEBUG] cache_get_data - connection handle: 1
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "level", data: "0"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "19"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "money", data: "0"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "alevel", data: "7"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "fraktion", data: "0"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "rang", data: "0"
    [00:21:09] [DEBUG] cache_get_field_content_int - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "spawnchange", data: "0"
    [00:21:09] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:09] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM autos WHERE besitzer='19'"..
    [00:21:09] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - starting query execution
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - query was successful
    [00:21:09] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - data being passed to ProcessCallbacks()
    [00:21:09] [DEBUG] Calling callback "OnPlayerCarsLoad"..
    [00:21:09] [DEBUG] cache_get_data - connection handle: 1
    [00:21:09] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
    [00:21:41] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:41] [DEBUG] mysql_tquery - scheduling query "UPDATE user SET level='0',money='0',alevel='7',fraktion='1',rang='6',spawnchange='0' WHERE id='19'"..
    [00:21:41] [DEBUG] mysql_tquery - connection handle: 1
    [00:21:41] [DEBUG] CMySQLQuery::Execute[()] - starting query execution
    [00:21:41] [DEBUG] mysql_tquery - scheduling query "SELECT * FROM autos WHERE besitzer='0'"..
    [00:21:41] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - starting query execution
    [00:21:41] [DEBUG] CMySQLQuery::Execute[()] - query was successful
    [00:21:41] [DEBUG] CMySQLQuery::Execute[()] - no callback specified, skipping result saving
    [00:21:41] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - query was successful
    [00:21:41] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad(i)] - data being passed to ProcessCallbacks()
    [00:21:41] [DEBUG] Calling callback "OnPlayerCarsLoad"..
    [00:21:41] [DEBUG] cache_get_data - connection handle: 1
    [00:21:41] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called



    Hab den log gefunden :>


    [00:37:39] *** CreateDynamicObject: Expecting 11 parameter(s), but found 12
    [00:37:39] 3DTexte erfolgreich Geladen
    [00:37:39]
    [00:37:39]
    [00:37:39] Westbound-Reallife
    [00:37:39] _____________________
    [00:37:39] Westbound-Reallife erfolgreich geladen!
    [00:37:39]
    [00:37:39] Number of vehicle models: 61
    [00:37:39] [connection] 87.98.244.35:55484 requests connection cookie.
    [00:37:39] [connection] 87.98.244.35:60239 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:37517 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:39192 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:42474 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:48868 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:45384 requests connection cookie.
    [00:37:40] [connection] 87.98.244.35:49611 requests connection cookie.
    [00:37:40] [connection] incoming connection: 87.98.244.35:55484 id: 0
    [00:37:40] [connection] incoming connection: 87.98.244.35:60239 id: 1
    [00:37:41] [connection] incoming connection: 87.98.244.35:37517 id: 2
    [00:37:41] [npc:join] Drogendealer has joined the server (0:87.98.244.35)
    [00:37:41] [connection] incoming connection: 87.98.244.35:39192 id: 3
    [00:37:41] [npc:join] Mitarbeiter has joined the server (1:87.98.244.35)
    [00:37:41] [connection] incoming connection: 87.98.244.35:42474 id: 4
    [00:37:41] [npc:join] Coinshop has joined the server (2:87.98.244.35)


    PUBLIC:SetConnect(playerid)
    {
    if(IsPlayerNPC(playerid)){
    return 1;
    }
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    SetPlayerColor(playerid, COLOR_GRAD2);


    new VAR = 0;
    mysql_free_result(MySQLConnection);
    if(VAR == 0)
    {
    if(IsPlayerNPC(playerid)){
    return 1;
    }
    if(mysql_CheckAccount(playerid))
    {
    LoginScreen(playerid,0);
    gPlayerAccount[playerid] = 1;
    // LOGIN
    ShowPlayerDialog(playerid, Login, DIALOG_STYLE_PASSWORD, "Westbound-Reallife: Login", "Bitte gib zur Verifizierung deiner Person das Accountpasswort ein:","Login","Verlassen");
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    TogglePlayerControllable(playerid,0);
    return 1;
    }
    else
    {
    if(strfind(playername, "*", true) != -1 || strfind(playername, "*", true) != -1)
    {
    ShowPlayerDialog(playerid,634,DIALOG_STYLE_MSGBOX,"Namen","Solche Namen werden auf unserem Server nicht Akzeptiert!\nBitte währe einen Namen und Connecte wieder auf den Server.","Bestätigen","");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("ConnectKick", 2000,0,"i",playerid);
    }
    {
    if(disablereg == true)
    {
    LoginScreen(playerid,0);
    ShowPlayerDialog(playerid,636,DIALOG_STYLE_MSGBOX,"Registration Nachts ausgeschaltet","Hallo,\ndie Registartion ist Nachts von 0-8 Uhr geschlossen.\nDer Grund dafür sind Cheater etc.\nWir bitten um Verständnis!\n\nwww.westbound-reallife.de","Bestätigen","");
    SetTimerEx("ConnectKick", 700,0,"i",playerid);
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    return 1;
    }
    }
    gPlayerAccount[playerid] = 0;
    ShowPlayerDialog(playerid, Register, DIALOG_STYLE_MSGBOX,"Westbound-Reallife: Registrierung","Willkommen auf Westbound Reallife!\n\nWie unser System erkannt hat hast du noch keinen Account.\nDu kannst dich nun bei uns Registrieren!","Registrieren","Verlassen");
    LoginScreen(playerid,0);
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    return 1;
    }
    }
    return 1;
    }




    Hey ich hab eine Frage wen ich auf den Server Connecte Erscheint gleich das Login egal mit welchen Namen ich drauf gehe. Normal sollte man sich ja Registrieren.


    ////////////////////////////////////////////
    #define MySQL_Host "87.98.243.201" //
    #define MySQL_User "samp6046" //
    #define MySQL_Passwort "GermanElite" //
    #define MySQL_DB "ni272727_1_DB" //
    ////////////////////////////////////////////



    Habe ich geht trd nicht -.-


    ////////////////////////////////////////////
    #define MySQL_Host "87.98.244.35" //
    #define MySQL_User "ni272727_1_DB" //
    #define MySQL_Passwort "dPEwmkA3" //
    #define MySQL_DB "ni272727_1_DB" //



    ////////////////////////////////////////////


    hab die Server IP mal angepasst..
    Aber findet keine Verbindung scheinbar..

    Ja ist ein. bin gerade selber im Script drinnen alles mit mysql verbunden


    //E:



    PUBLIC:OnPlayerRegister(playerid, password[])
    {
    StuffInfo[sNeuUser] += 1;
    if(IsPlayerConnected(playerid))
    {
    new string[128],
    playername[MAX_PLAYER_NAME];


    GetPlayerName(playerid, playername, sizeof(playername));


    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
    format(string, sizeof(string), "INSERT INTO `users` (`Name`, `Password`) VALUES ('%s', '%s')", playername, GeneratePassword(password));
    self_mysql_queryEx(string);


    PlayerInfo[playerid][pSQLID] = mysql_insert_id();
    format(string, sizeof(string), "UPDATE `users` SET `RegisterDatum`='%d' WHERE `Name`='%s'", Time(), playername);


    self_mysql_queryEx(string);


    PlayerInfo[playerid][pChar] = 26;
    gOoc[playerid] = 0;
    PlayerInfo[playerid][pReg] = 1;
    PlayerInfo[playerid][pAlter] = 0;
    PlayerInfo[playerid][pTut] = 0;
    PlayerInfo[playerid][pLevel] = 1;
    PlayerInfo[playerid][pSHealth] = 50.0;
    StuffInfo[sLastNumber] += 1;
    PlayerInfo[playerid][pNummer] = StuffInfo[sLastNumber];
    PlayerInfo[playerid][pBizKey] = -1;
    PlayerInfo[playerid][pBank] = 0;
    GivePlayerMoneys(playerid, 5000);
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pArrested] = 0;
    PlayerInfo[playerid][pArrestTime] = 0;
    PlayerInfo[playerid][pKills] = 0;
    PlayerInfo[playerid][psKills] = 0;
    PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pMember] = -1;
    PlayerInfo[playerid][pLeader] = -1;
    PlayerInfo[playerid][pOnDutySkin] = 60;
    PlayerInfo[playerid][pPistolSkill] = 2;
    PlayerInfo[playerid][pMaschinePistolSkill] = 2;
    PlayerInfo[playerid][pSturmgewehrPistolSkill] = 2;
    PlayerInfo[playerid][pShotGunSkill] = 1;
    /*Scheine*/
    PlayerInfo[playerid][pGunLic] = 0;
    PlayerInfo[playerid][pFlyLic] = 0;
    PlayerInfo[playerid][pCarLic] = 0;
    PlayerInfo[playerid][pBikeLic] = 0;
    PlayerInfo[playerid][pCPTUT] = 0;
    PlayerInfo[playerid][pKHTIME] = 0;


    PlayerUpdate(playerid);
    }
    return 1;
    }


    PUBLIC:SetConnect(playerid)
    {
    if(IsPlayerNPC(playerid)){
    return 1;
    }
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    SetPlayerColor(playerid, COLOR_GRAD2);


    new VAR = 0;
    mysql_free_result(MySQLConnection);
    if(VAR == 0)
    {
    if(IsPlayerNPC(playerid)){
    return 1;
    }
    if(mysql_CheckAccount(playerid))
    {
    LoginScreen(playerid,0);
    gPlayerAccount[playerid] = 1;
    // LOGIN
    ShowPlayerDialog(playerid, Login, DIALOG_STYLE_PASSWORD, "Westbound-Reallife: Login", "Bitte gib zur Verifizierung deiner Person das Accountpasswort ein:","Login","Verlassen");
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    TogglePlayerControllable(playerid,0);
    return 1;
    }
    else
    {
    if(strfind(playername, "*", true) != -1 || strfind(playername, "*", true) != -1)
    {
    ShowPlayerDialog(playerid,634,DIALOG_STYLE_MSGBOX,"Namen","Solche Namen werden auf unserem Server nicht Akzeptiert!\nBitte währe einen Namen und Connecte wieder auf den Server.","Bestätigen","");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("ConnectKick", 2000,0,"i",playerid);
    }
    {
    if(disablereg == true)
    {
    LoginScreen(playerid,0);
    ShowPlayerDialog(playerid,636,DIALOG_STYLE_MSGBOX,"Registration Nachts ausgeschaltet","Hallo,\ndie Registartion ist Nachts von 0-8 Uhr geschlossen.\nDer Grund dafür sind Cheater etc.\nWir bitten um Verständnis!\n\nwww.westbound-reallife.de","Bestätigen","");
    SetTimerEx("ConnectKick", 700,0,"i",playerid);
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    return 1;
    }
    }
    gPlayerAccount[playerid] = 0;
    ShowPlayerDialog(playerid, Register, DIALOG_STYLE_MSGBOX,"Westbound-Reallife: Registrierung","Willkommen auf Westbound Reallife!\n\nWie unser System erkannt hat hast du noch keinen Account.\nDu kannst dich nun bei uns Registrieren!","Registrieren","Verlassen");
    LoginScreen(playerid,0);
    LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
    return 1;
    }
    }
    return 1;
    }

    sscanf hab ich jetzt als Plugin eingefügt ist immer noch der fehler....



    //E:



    [22:11:50] --- Server Shutting Down.
    [22:11:50]


    > MySQL plugin unloaded.


    [22:11:50]


    *** Streamer Plugin v2.6.1 by Incognito unloaded ***


    [22:11:50]


    *** Audio Plugin v0.5 R2 by Incognito unloaded ***


    [22:11:50]


    [22:11:50] ===============================


    [22:11:50] sscanf plugin unloaded.


    [22:11:50] ===============================



    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team


    [22:11:58] mapname = "San Andreas" (string)
    [22:11:58]
    [22:11:58] Server Plugins
    [22:11:58] --------------
    [22:11:58] Loading plugin: mysql.so
    [22:11:58]


    > MySQL plugin R5 successfully loaded.


    [22:11:58] Loaded.
    [22:11:58] Loading plugin: streamer.so
    [22:11:58]


    *** Streamer Plugin v2.6.1 by Incognito loaded ***


    [22:11:58] Loaded.
    [22:11:58] Loading plugin: nativechecker.so
    [22:11:58] Loaded.
    [22:11:58] Loading plugin: sscanf.so
    [22:11:58]


    [22:11:58] ===============================


    [22:11:58] sscanf plugin loaded.


    [22:11:58] (c) 2009 Alex "Y_Less" Cole


    [22:11:58] 0.3d-R2 500 Players "dnee"


    [22:11:58] ===============================


    [22:11:58] Loaded.
    [22:11:58] Loaded 4 plugins.


    [22:11:58]
    [22:11:58] Ban list
    [22:11:58] --------
    [22:11:58] Loaded: samp.ban
    [22:11:58]
    [22:11:58]
    [22:11:58] Filterscripts
    [22:11:58] ---------------
    [22:11:58] Loaded 0 filterscripts.


    [22:11:58] Error: Function not registered: 'SSCANF_Init'
    [22:11:58] Error: Function not registered: 'SSCANF_Join'
    [22:11:58] Error: Function not registered: 'SSCANF_Leave'
    [22:11:58] Error: Function not registered: 'sscanf'
    [22:11:58] Error: Function not registered: 'dir_exists'
    [22:11:58] Error: Function not registered: 'dir_create'
    [22:11:58] Error: Function not registered: 'file_write'
    [22:11:58] Script[gamemodes/WB.amx]: Run time error 19: "File or function is not found"
    [22:11:58] Number of vehicle models: 0