Beiträge von Phi

    Hi Leute dieser Code hier:


    function SaveSpieler(playerid) {
    GetPlayerPos(playerid, SpielerInfo[playerid][Spawn][0],SpielerInfo[playerid][Spawn][1],SpielerInfo[playerid][Spawn][2]);
    GetPlayerFacingAngle(playerid, SpielerInfo[playerid][Spawn][3]);
    SpielerInfo[playerid][InteriorSpawn] = GetPlayerInterior(playerid);
    SpielerInfo[playerid][WorldSpawn] = GetPlayerVirtualWorld(playerid);

    new Query[5000];
    format(Query,sizeof(Query),"UPDATE spieler SET AdminLevel=%d,Money=%d,Bank=%d,Faction=%d,Rank=%d,HouseKey=%d,BizKey=%d,Skin=%d, \
    Spawn1='%f',Spawn2='%f',Spawn3='%f',Spawn4='%f',Spawn5=%d,Reg=%d WHERE Name='%s'",SpielerInfo[playerid][AdminLevel],GetPlayerCash(playerid),SpielerInfo[playerid][Bank],
    SpielerInfo[playerid][Faction],SpielerInfo[playerid][Rank],SpielerInfo[playerid][HouseKey],
    SpielerInfo[playerid][BizKey],GetPlayerSkin(playerid),SpielerInfo[playerid][Spawn][0],SpielerInfo[playerid][Spawn][1],SpielerInfo[playerid][Spawn][2],SpielerInfo[playerid][Spawn][3],
    SpielerInfo[playerid][InteriorSpawn],SpielerInfo[playerid][Reg],GetUserName(playerid));
    printf(Query);
    mysql_query(Query);
    mysql_store_result();

    format(Query,sizeof(Query),"UPDATE spieler SET Sex=%d,Wallet=%d,Renting=%d,Products=%d,PhoneNumber=%d,Minutes=%d,Spawn6=%d,Arrested=%d,Prisoned=%d, \
    Jailed=%d,JailTime=%d,Cell=%d,Towe=%d,License=%d,Linked=%d,ForumName='%s' WHERE Name='%s'",SpielerInfo[playerid][Sex],GetPlayerWalletCash(playerid),SpielerInfo[playerid][Renting],SpielerInfo[playerid][Products],
    SpielerInfo[playerid][PhoneNumber],SpielerInfo[playerid][Minutes],SpielerInfo[playerid][WorldSpawn],SpielerInfo[playerid][Arrested],SpielerInfo[playerid][Prisoned],SpielerInfo[playerid][Jailed],
    SpielerInfo[playerid][JailTime],SpielerInfo[playerid][Cell],SpielerInfo[playerid][Towe],SpielerInfo[playerid][License], SpielerInfo[playerid][Linked], SpielerInfo[playerid][ForumName],GetUserName(playerid));
    printf(Query);
    mysql_query(Query);
    mysql_store_result();

    format(Query,sizeof(Query),"UPDATE spieler SET ForumPassword='%s',wLicense=%d,Job=%d,Donator=%d,CarParts=%d,PlayingTime=%d,FightingStyle=%d, \
    Materials=%d,GesuchtLevel=%d WHERE Name='%s'",SpielerInfo[playerid][ForumPassword],SpielerInfo[playerid][wLicense],SpielerInfo[playerid][pJob], SpielerInfo[playerid][Donator], SpielerInfo[playerid][CarParts], SpielerInfo[playerid][PlayingTime],
    SpielerInfo[playerid][FightingStyle],SpielerInfo[playerid][Materials],GetPlayerWantedLevel(playerid),GetUserName(playerid));
    printf(Query);
    mysql_query(Query);
    mysql_store_result();
    mysql_free_result();
    return 1;
    }


    Kann mir einer sagen was ich da Falsch gemacht habe alles ist auf 0 wenn ich Disconnecte und wieder Connecte.

    Hi Leute ich habe ein Problem mit der Speicherung:
    Wenn ich ein Account Speichere dann sind alle Variablen auf 0


    Hier mal die Speicherung:
    stock SpielerSpeichern(playerid)
    {
    new Query[2000];

    format(Query,sizeof(Query),"UPDATE `accounts` SET `FLSchein` = '%i',`MSchein` = '%i',`FSchein` = '%i',`BSchein` = '%i',`Weed` = '%i',`ZigMarke` = '%i,`Zigaretten` = '%i',`Bizz` = '%i',`HausID` = '%i',`Geld` = '%i',`Level` = '%i' WHERE `Name` = '%s'",SpielerInfo[playerid][FLSchein],SpielerInfo[playerid][MSchein],
    SpielerInfo[playerid][FSchein],SpielerInfo[playerid][BSchein],SpielerInfo[playerid][Weed],SpielerInfo[playerid][ZigMarke],SpielerInfo[playerid][Zigaretten],SpielerInfo[playerid][Bizz],SpielerInfo[playerid][HausID],GetMoney(playerid),GetPlayerScore(playerid),SpielerName(playerid));
    mysql_query(Query);
    mysql_store_result();


    format(Query,sizeof(Query),"UPDATE `accounts` SET `Leader` = '%i',`Member` = '%i',`Rang` = '%i',`Skin` = '%i',`Perso` = '%i',`Job = '%i',`Mats` = '%i',`Handy` = '%i',`Guthaben` = '%i',`Vertrag` = '%i',`Admin` = '%i' WHERE `Name` = '%s'",SpielerInfo[playerid][Leader],SpielerInfo[playerid][Member],
    SpielerInfo[playerid][Rang],GetPlayerSkin(playerid),SpielerInfo[playerid][Perso],SpielerInfo[playerid][Job],SpielerInfo[playerid][Mats],SpielerInfo[playerid][Handy],SpielerInfo[playerid][Guthaben],SpielerInfo[playerid][Vertrag],SpielerInfo[playerid][Admin],SpielerName(playerid));
    mysql_query(Query);
    mysql_store_result();

    format(Query,sizeof(Query),"UPDATE `accounts` SET `VIP` = '%i',`Supporter` = '%i',`Respekt` = '%i',`Telefonbuch` = '%i',`Tutorial` = '%i',`Bankkarte` = '%i',`Bank` = '%i',`Knast` = '%i',`KnastZeit` = '%i',`LVPass = '%i' WHERE `Name = '%s'",SpielerInfo[playerid][VIP],SpielerInfo[playerid][Supporter],
    SpielerInfo[playerid][Respekt],SpielerInfo[playerid][Telefonbuch],SpielerInfo[playerid][Tutorial],SpielerInfo[playerid][Bankkarte],SpielerInfo[playerid][Bank],SpielerInfo[playerid][Knast],SpielerInfo[playerid][KnastZeit],SpielerInfo[playerid][LVPass],SpielerName(playerid));
    mysql_query(Query);
    mysql_store_result();

    format(Query,sizeof(Query),"UPDATE `accounts` SET `SFPass` = '%i',`Verwarnungen` = '%i',`Punkte` = '%i',`Local` = '%i',`Versicherung` = '%i',`Kanister` = '%i',`HatKanister` = '%i',`Handynummer` = '%i',`Wanted` = '%i',`Verheiratet` = '%i',`VerheiratetMit` = '%s' WHERE `Name` = '%s'",SpielerInfo[playerid][SFPass],SpielerInfo[playerid][Verwarnungen],SpielerInfo[playerid][Punkte],
    SpielerInfo[playerid][Local],SpielerInfo[playerid][Versicherung],SpielerInfo[playerid][Kanister],SpielerInfo[playerid][HatKanister],SpielerInfo[playerid][Handynummer],GetPlayerWantedLevel(playerid),SpielerInfo[playerid][Verheiratet],SpielerInfo[playerid][VerheiratetMit],SpielerName(playerid));
    mysql_query(Query);
    mysql_store_result();
    mysql_free_result();
    return 1;
    }


    Edit und das Passwort wird als Nichts gespeichert!
    hier der Speicherungscode für das Passwort:
    stock CreateAccount(playerid, pass[])
    {
    new query[256],Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    mysql_real_escape_string(Name,Name);
    mysql_real_escape_string(pass,pass);
    format(query, sizeof(query), "INSERT INTO accounts (Name, Passwort) VALUES ('%s', '%s')", Name, pass);
    mysql_query(query);
    return true;
    }

    Hi Leute ich hab nen Problem mit meinen Commands..
    Ich habe mich von den SSCANF Code abgewendet und das SSCANF Plugin genommen da der Code bei 0.3d RC9 immer Unknown Command abgibt.
    Aber nun ist das immer noch so.
    Ich benutze ZCMD.
    hier mal ein beispielcommand in mein Script:
    CMD:scheiden(playerid,params[])
    {
    new string[128],
    pID,
    string2[128],
    SpielerString[MAX_PLAYER_NAME+10],
    SpielerString2[MAX_PLAYER_NAME+10];
    if(sscanf(params,"u",pID)) return SendClientMessage(playerid,Grau,"Benutzung: /scheiden [ID]");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,Grau,"Dieser Sieler ist nicht Online");
    if(pID == playerid) return SendClientMessage(playerid,Grau,"Du kannst dich nicht von dir Scheiden");
    if(SpielerInfo[playerid][Verheiratet] == 0) return SendClientMessage(playerid,Grau,"Du bist nicht Verheiratet.");
    if(!ProxDetectorS(8.0, playerid, pID)) return SendClientMessage(playerid,Grau,"Du bist nicht in der Nähe von dem Spieler");
    format(string2,sizeof(string2),"%s",SpielerInfo[playerid][VerheiratetMit]);
    strmid(SpielerString,string2,0,strlen(string2),255);
    format(string2,sizeof(string2),"%s",pID);
    strmid(SpielerString2,string2,0,strlen(string2),255);
    if(strcmp(SpielerString,SpielerString2,true)==0)
    {
    format(string,sizeof(string),"Du hast %s die Scheidung eingerreicht",SpielerName(pID));
    SendClientMessage(playerid,Hellblau,string);
    format(string,sizeof(string),"%s hat dir die Scheidung eingerreicht (/akzeptieren scheidung),",SpielerName(playerid));
    SendClientMessage(pID,Hellblau,string);
    DivorceOffer[pID] = playerid;
    return 1;
    }
    return 1;
    }

    Hi Leute ich habe ein Fehler beim DTDC carsystem der Server Crasht wenn man sich ein auto kaufen will.
    Hier mal die Fehlercodes:

    Code
    [20:19:33]:   File 'C:\Users\WayNeTraiiN\Desktop\NY-RP Server\gamemodes\NewYorkRoleplay.pwn', line 3642
    [20:19:33]:     Dtdc_HandleLiveView(playerid=0)
    [20:19:33]:   File 'C:\Users\WayNeTraiiN\Desktop\NY-RP Server\gamemodes\NewYorkRoleplay.pwn'
    [20:19:33]:     OnPlayerUpdate(playerid=0) <-- entry point
    [20:19:34]: Script[gamemodes\NewYorkRoleplay.amx]: In file 'C:\Users\WayNeTraiiN\Desktop\NY-RP Server\gamemodes\NewYorkRoleplay.pwn' at line 22873:
    [20:19:34]: Script[gamemodes\NewYorkRoleplay.amx]: Run time error 3: "Stack/heap collision (insufficient stack size)"


    Zeile 22873:
    forward Dtdc_HandleLiveView(playerid);
    public Dtdc_HandleLiveView(playerid)
    {
    if( (GetTickCount() - Dtdc_Player[playerid][LastTick]) < 500 ) return;
    new string[200]; //Zeile 22873 Ich habe nix dran geändert...
    new Keys,ud,lr;
    GetPlayerKeys(playerid,Keys,ud,lr);
    //KEYS
    if(Keys & KEY_FIRE) {
    new Float:px,Float:py,Float:pa;
    px = Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconPosX];
    py = Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconPosY];
    pa = Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconRot];
    GetXYInFrontOf(pa,px,py,2.5);
    SetPlayerPos(playerid,px,py,Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconPosZ]);
    SetPlayerFacingAngle(playerid,Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconRot]);
    SetPlayerInterior(playerid,0);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    SetPlayerVirtualWorld(playerid, 0);
    Dtdc_Player[playerid][IsInSeller] = (MaxSeller+1);
    CallRemoteFunction("PlayerDTDCSellerStateChange","dd",playerid,0);
    TextDrawHideForPlayer(playerid,Dtdc_Player[playerid][CarKauf][0]);
    TextDrawHideForPlayer(playerid,Dtdc_Player[playerid][CarKauf][1]);
    for(new i=0;i<4;i++){TextDrawHideForPlayer(playerid,Dtdc_BuyTexte[i]);}
    //CAR SHOW
    if(Dtdc_Player[playerid][CarShow] !=0){DestroyVehicle(Dtdc_Player[playerid][CarShow]);Dtdc_Player[playerid][CarShow] = 0;}
    Dtdc_Player[playerid][LastTick] = GetTickCount();
    return;
    }
    if(Keys & 16) {
    if(Dtdc_OnCarBuy(playerid,Dtdc_Player[playerid][IsInSeller],Dtdc_Player[playerid][CarSelect]))
    {
    new Float:px,Float:py,Float:pa;
    px = Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconPosX];
    py = Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconPosY];
    pa = Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconRot];
    GetXYInFrontOf(pa,px,py,2.5);
    SetPlayerPos(playerid,px,py,Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconPosZ]);
    SetPlayerFacingAngle(playerid,Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sIconRot]);
    SetPlayerInterior(playerid,0);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid,1);
    SetPlayerVirtualWorld(playerid, 0);
    Dtdc_Player[playerid][IsInSeller] = (MaxSeller+1);
    CallRemoteFunction("PlayerDTDCSellerStateChange","dd",playerid,0);
    TextDrawHideForPlayer(playerid,Dtdc_Player[playerid][CarKauf][0]);
    TextDrawHideForPlayer(playerid,Dtdc_Player[playerid][CarKauf][1]);
    for(new i=0;i<4;i++){TextDrawHideForPlayer(playerid,Dtdc_BuyTexte[i]);}
    //CAR SHOW
    if(Dtdc_Player[playerid][CarShow] !=0){DestroyVehicle(Dtdc_Player[playerid][CarShow]);Dtdc_Player[playerid][CarShow] = 0;}
    }
    Dtdc_Player[playerid][LastTick] = GetTickCount();
    return;
    }
    if(lr > 0) { // right
    Dtdc_Player[playerid][CarSelect] = 0;
    Dtdc_Player[playerid][IsAtCar] ++;
    if(Dtdc_Player[playerid][IsAtCar] >= Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sCars]){Dtdc_Player[playerid][IsAtCar] = 0;}
    new plus = 0;
    for(new i = 0; i < Dtdc_SCarsNum; i++)
    {
    if(Dtdc_SCars[i][scSeller] == Dtdc_Player[playerid][IsInSeller])
    {
    if(plus == Dtdc_Player[playerid][IsAtCar]) {Dtdc_Player[playerid][CarSelect] = i; break;}
    plus++;
    }
    }
    //SHOW CAR
    if(Dtdc_Player[playerid][CarShow] !=0){DestroyVehicle(Dtdc_Player[playerid][CarShow]);Dtdc_Player[playerid][CarShow] = 0;}
    Dtdc_Player[playerid][CarShow] = CreateVehicle(Dtdc_SCars[Dtdc_Player[playerid][CarSelect]][scModel],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sLVCarPosX],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sLVCarPosY],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sLVCarPosZ],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sLVCarRot],Dtdc_Player[playerid][CarColorSelect1],Dtdc_Player[playerid][CarColorSelect2],-1);
    SetVehicleVirtualWorld(Dtdc_Player[playerid][CarShow],GetPlayerVirtualWorld(playerid));
    //Textdraw
    format(string,sizeof(string),"Name: %s~n~Kategorie: %s~n~Preis: ~g~%d$",Dtdc_CarName[Dtdc_SCars[Dtdc_Player[playerid][CarSelect]][scModel]-400],Dtdc_NameCat[Dtdc_SCars[Dtdc_Player[playerid][CarSelect]][scCat]],Dtdc_SCars[Dtdc_Player[playerid][CarSelect]][scPreis]);
    if(!Dtdc_Player[playerid][CarKauf][0])
    {
    Dtdc_Player[playerid][CarKauf][0] = TextDrawCreate(20.000000,328.000000,Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sName]);
    Dtdc_Player[playerid][CarKauf][1] = TextDrawCreate(11.000000,355.000000,string);
    TextDrawAlignment(Dtdc_Player[playerid][CarKauf][0],0);
    TextDrawAlignment(Dtdc_Player[playerid][CarKauf][1],0);
    TextDrawBackgroundColor(Dtdc_Player[playerid][CarKauf][0],0x000000ff);
    TextDrawBackgroundColor(Dtdc_Player[playerid][CarKauf][1],0x000000ff);
    TextDrawFont(Dtdc_Player[playerid][CarKauf][0],0);
    TextDrawLetterSize(Dtdc_Player[playerid][CarKauf][0],1.000000,2.299999);
    TextDrawFont(Dtdc_Player[playerid][CarKauf][1],1);
    TextDrawLetterSize(Dtdc_Player[playerid][CarKauf][1],0.499999,1.800000);
    TextDrawColor(Dtdc_Player[playerid][CarKauf][0],0xffffffff);
    TextDrawColor(Dtdc_Player[playerid][CarKauf][1],0xffffffff);
    TextDrawSetOutline(Dtdc_Player[playerid][CarKauf][0],1);
    TextDrawSetOutline(Dtdc_Player[playerid][CarKauf][1],1);
    TextDrawSetProportional(Dtdc_Player[playerid][CarKauf][0],1);
    TextDrawSetProportional(Dtdc_Player[playerid][CarKauf][1],1);
    TextDrawSetShadow(Dtdc_Player[playerid][CarKauf][0],1);
    TextDrawSetShadow(Dtdc_Player[playerid][CarKauf][1],1);
    TextDrawShowForPlayer(playerid,Dtdc_Player[playerid][CarKauf][0]);
    TextDrawShowForPlayer(playerid,Dtdc_Player[playerid][CarKauf][1]);
    }
    else
    {
    TextDrawHideForPlayer(playerid,Dtdc_Player[playerid][CarKauf][0]);
    TextDrawSetString(Dtdc_Player[playerid][CarKauf][0],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sName]);
    TextDrawShowForPlayer(playerid,Dtdc_Player[playerid][CarKauf][0]);
    TextDrawHideForPlayer(playerid,Dtdc_Player[playerid][CarKauf][1]);
    TextDrawSetString(Dtdc_Player[playerid][CarKauf][1],string);
    TextDrawShowForPlayer(playerid,Dtdc_Player[playerid][CarKauf][1]);
    }
    Dtdc_Player[playerid][LastTick] = GetTickCount();
    return;
    }
    else if(lr < 0) {
    Dtdc_Player[playerid][CarSelect] = 0;
    Dtdc_Player[playerid][IsAtCar] --;
    if(Dtdc_Player[playerid][IsAtCar] <0){Dtdc_Player[playerid][IsAtCar] = Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sCars]-1;}
    new plus = 0;
    for(new i = 0; i < Dtdc_SCarsNum; i++)
    {
    if(Dtdc_SCars[i][scSeller] == Dtdc_Player[playerid][IsInSeller])
    {
    if(plus == Dtdc_Player[playerid][IsAtCar]) {Dtdc_Player[playerid][CarSelect] = i; break;}
    plus++;
    }
    }
    //SHOW CAR
    if(Dtdc_Player[playerid][CarShow] !=0){DestroyVehicle(Dtdc_Player[playerid][CarShow]);Dtdc_Player[playerid][CarShow] = 0;}
    Dtdc_Player[playerid][CarShow] = CreateVehicle(Dtdc_SCars[Dtdc_Player[playerid][CarSelect]][scModel],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sLVCarPosX],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sLVCarPosY],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sLVCarPosZ],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sLVCarRot],Dtdc_Player[playerid][CarColorSelect1],Dtdc_Player[playerid][CarColorSelect2],-1);
    SetVehicleVirtualWorld(Dtdc_Player[playerid][CarShow],GetPlayerVirtualWorld(playerid));
    //Textdraw
    format(string,sizeof(string),"Name: %s~n~Kategorie: %s~n~Preis: ~g~%d$",Dtdc_CarName[Dtdc_SCars[Dtdc_Player[playerid][CarSelect]][scModel]-400],Dtdc_NameCat[Dtdc_SCars[Dtdc_Player[playerid][CarSelect]][scCat]],Dtdc_SCars[Dtdc_Player[playerid][CarSelect]][scPreis]);
    if(!Dtdc_Player[playerid][CarKauf][0])
    {
    Dtdc_Player[playerid][CarKauf][0] = TextDrawCreate(20.000000,328.000000,Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sName]);
    Dtdc_Player[playerid][CarKauf][1] = TextDrawCreate(11.000000,355.000000,string);
    TextDrawAlignment(Dtdc_Player[playerid][CarKauf][0],0);
    TextDrawAlignment(Dtdc_Player[playerid][CarKauf][1],0);
    TextDrawBackgroundColor(Dtdc_Player[playerid][CarKauf][0],0x000000ff);
    TextDrawBackgroundColor(Dtdc_Player[playerid][CarKauf][1],0x000000ff);
    TextDrawFont(Dtdc_Player[playerid][CarKauf][0],0);
    TextDrawLetterSize(Dtdc_Player[playerid][CarKauf][0],1.000000,2.299999);
    TextDrawFont(Dtdc_Player[playerid][CarKauf][1],1);
    TextDrawLetterSize(Dtdc_Player[playerid][CarKauf][1],0.499999,1.800000);
    TextDrawColor(Dtdc_Player[playerid][CarKauf][0],0xffffffff);
    TextDrawColor(Dtdc_Player[playerid][CarKauf][1],0xffffffff);
    TextDrawSetOutline(Dtdc_Player[playerid][CarKauf][0],1);
    TextDrawSetOutline(Dtdc_Player[playerid][CarKauf][1],1);
    TextDrawSetProportional(Dtdc_Player[playerid][CarKauf][0],1);
    TextDrawSetProportional(Dtdc_Player[playerid][CarKauf][1],1);
    TextDrawSetShadow(Dtdc_Player[playerid][CarKauf][0],1);
    TextDrawSetShadow(Dtdc_Player[playerid][CarKauf][1],1);
    TextDrawShowForPlayer(playerid,Dtdc_Player[playerid][CarKauf][0]);
    TextDrawShowForPlayer(playerid,Dtdc_Player[playerid][CarKauf][1]);
    }
    else
    {
    TextDrawHideForPlayer(playerid,Dtdc_Player[playerid][CarKauf][0]);
    TextDrawSetString(Dtdc_Player[playerid][CarKauf][0],Dtdc_Seller[Dtdc_Player[playerid][IsInSeller]][sName]);
    TextDrawShowForPlayer(playerid,Dtdc_Player[playerid][CarKauf][0]);
    TextDrawHideForPlayer(playerid,Dtdc_Player[playerid][CarKauf][1]);
    TextDrawSetString(Dtdc_Player[playerid][CarKauf][1],string);
    TextDrawShowForPlayer(playerid,Dtdc_Player[playerid][CarKauf][1]);
    }
    Dtdc_Player[playerid][LastTick] = GetTickCount();
    return;
    }
    if(ud < 0) {//up
    if(Keys & KEY_CROUCH){Dtdc_Player[playerid][CarColorSelect2] ++;} else {Dtdc_Player[playerid][CarColorSelect1] ++;}
    if(Dtdc_Player[playerid][CarColorSelect1] > 127){Dtdc_Player[playerid][CarColorSelect1] = 0;}
    if(Dtdc_Player[playerid][CarColorSelect2] > 127){Dtdc_Player[playerid][CarColorSelect2] = 0;}
    ChangeVehicleColor(Dtdc_Player[playerid][CarShow],Dtdc_Player[playerid][CarColorSelect1],Dtdc_Player[playerid][CarColorSelect2]);
    Dtdc_Player[playerid][LastTick] = GetTickCount();
    } else if(ud > 0) { //down
    if(Keys & KEY_CROUCH){Dtdc_Player[playerid][CarColorSelect2] --;} else {Dtdc_Player[playerid][CarColorSelect1] --;}
    if(Dtdc_Player[playerid][CarColorSelect1] < 0){Dtdc_Player[playerid][CarColorSelect1] = 127;}
    if(Dtdc_Player[playerid][CarColorSelect2] < 0){Dtdc_Player[playerid][CarColorSelect2] = 127;}
    ChangeVehicleColor(Dtdc_Player[playerid][CarShow],Dtdc_Player[playerid][CarColorSelect1],Dtdc_Player[playerid][CarColorSelect2]);
    Dtdc_Player[playerid][LastTick] = GetTickCount();
    }
    }


    Und die Zeile 3642:
    if(Dtdc_Select == 0 && Dtdc_Player[playerid][IsInSeller] != MaxSeller +1 && (GetTickCount() - Dtdc_Player[playerid][LastTick]) >= 500 )
    {
    Dtdc_HandleLiveView(playerid); // Naja Grandlarc lässt grüßen xD Naja ahbe andere wege um a und d benutzen zu können versucht doch nur der ging zu 100%
    }
    if(Dtdc_Player[playerid][IsInRespray] != MaxResprayer +1 && (GetTickCount() - Dtdc_Player[playerid][LastTick]) >= 250 )
    {
    Dtdc_HandleResprayer(playerid); // Naja Grandlarc lässt grüßen xD Naja ahbe andere wege um a und d benutzen zu können versucht doch nur der ging zu 100%
    }
    if(GetPVarInt(playerid,"YEAH") == 1)
    {//Das ist die Zeile 3642 habe ich auch nix dran geändert...
    new Float:VPos[3], Float:Rotation;
    GetVehiclePos(GetPlayerVehicleID(playerid),VPos[0],VPos[1],VPos[2]);
    Rotation = PointAngle(playerid, VPos[0],VPos[1], GetPVarFloat(playerid,"Spongebob"), GetPVarFloat(playerid,"Mario"));
    AttachObjectToVehicle(GPSObject[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 1.5, 0.0, 90.0, Rotation);
    }



    Hoffe mir kann einer Helfen


    //Edit fehler zeile Editiert habe mich verschrieben ;)

    Hi Leute ich hab nen Problem:
    Ich habe mein Godfather wie gesagt auf StrickenKid MySQL umgeschrieben und jetzt lädt es nichts mehtr.
    bzw: es lädt die Standartsachen wie LoadFamilies(); usw. nichtmehr.
    Ich habe schon alles versucht aber nichts hat geklappt
    könnt ihr mir da villeich Helfen.
    Codes weiß ich net welche da es keine Errors / Warnings gibt

    Habe ich....
    hier mal der Fehlercode der gerade gekommen ist beim Starten:

    Code
    [18:26:45] Function: mysql_connect called with incorrect parameter count.


    //Edit Sry etwas vergessen hier mein Mysql Connect:
    mysql_init(LOG_ALL,1);
    mysql_connect(SQL_HOST,SQL_USER,SQL_PASS,SQL_DATA);

    Hi Leute mein Script benutzt das StrickenKid MySQL Plugin [Neuste Version] 0.3dRC8.
    Wenn ich den Server Starte und das MySQL Connecten und das Loggen nicht ganz Oben bei OnGameModeInit habe dann Connected es nicht zur Datenbank und Lädt auch nix unter Ongamemodeinit..
    Aber wenn ich das MySQL Connect und das Loggen rauslasse dann funktioniert der Server ganz normal..
    Da steht Gamemode unknown......
    Wenn ich das Plugin von G-StylezZz nehme dann Speichert er die sachen nicht.. [Habe das wie im Tutorial von Maddin gemacht]......


    Hoffe einer kann per TeamViewer Helfen

    Hier mal mit Crashdetect was da steht:

    Code
    [02:50:31] [crashdetect]: gamemodes\NewYorkRoleplay.amx does not contain debug information
    [02:50:31] *** Audio Plugin: Started TCP server on port 7777
    [02:50:31] Number of vehicle models: 0
    [02:50:36] --- Server Shutting Down.
    [02:50:36] Crash caused by mysql_close at address 00005EEC in gamemodes\NewYorkRoleplay.amx
    [02:50:36] For more details compile this script with debugging symbols enabled and start the server again


    Die Objekte werden auch dann nicht Geladen ich habe es so gemacht das ich bei OnGamemodeinit
    LadeOnGameModeInit(); geschrieben habe das dann die verschiedenen Funktionen aufruft aber geht Trozdem nicht.
    //Edit kleiner Fehler


    //Edit nun ist es so das der Server garnicht Startet.....

    Hi Leute ich hab nen problem mit meinem Ongamemodeinit..
    Ich habe alles Versucht aber nix....
    Ich habe eine kleine Map eingefügt und seit dem lädt er keine Objekte/Autos.
    Es sind c.a 7,9k Objekte
    Ich habe Crashdetect ausprobiert aber da geht der Server immer aus wegen der Float.inc.. ist standart Include von samp.
    wenn ihr Codes braucht sagt bescheid ich kann eure gedanken leider nicht lesen.

    Hier das Registrieren:
    case DIALOG_ANMEL:
    {
    if(response)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Passwort","Bitte gebe dein Passwort ein","Weiter","Abbrechen");
    }
    else
    {
    Kick(playerid);
    SendClientMessage(playerid,FARBE_GRAU,"Abgebrochen");
    }
    }


    case DIALOG_REGISTER:
    {
    if(response)
    {
    if(strlen(inputtext) < 6)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Passwort","Das Passwort muss Mind. 6 Zeichen enthalten","Weiter","Abbrechen");
    }
    else
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    new query[128];
    format(query,sizeof(query),"INSERT INTO accounts (Name,Passwort) VALUES ('%s','%s')",name,inputtext);
    mysql_query(query);
    mysql_free_result();
    SpielerInfo[playerid][Level] = 2;
    SetPlayerScore(playerid,2);
    SpielerRegistrieren(playerid);
    SetPlayerPos(playerid,1674.3087,-1817.4877,36.3322);
    SetPlayerCameraPos(playerid,1760.8419,-1821.2406,32.2045);
    SetPlayerCameraLookAt(playerid,1745.3715,-1860.9640,14.8104);
    ShowPlayerDialog(playerid,DIALOG_REGISTER2,DIALOG_STYLE_LIST,"Geschlecht","Männlich\nWeiblich","Weiter","Abbrechen");
    }
    }
    else
    {
    Kick(playerid);
    SendClientMessage(playerid,FARBE_GRAU,"Abgebrochen");
    fremove(SpielerDatei(playerid));
    }
    }
    weiter:
    stock SpielerRegistrieren(playerid)
    {
    SpielerSpeichern(playerid);
    SendClientMessage(playerid,Grau,"AccountInfo: Dein Account wurde gespeichert");
    new randphone = 900000 + random(999999);
    SpielerInfo[playerid][Handynummer] = randphone;
    SpielerInfo[playerid][Leader] = 0;
    SpielerInfo[playerid][Member] = 0;
    return 1;
    }
    Das Speichern
    forward SpielerSpeichern(playerid);
    public SpielerSpeichern(playerid)
    {
    new bedien[128],updatestring[128],playername[24],field[50],query[500];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(bedien,sizeof(bedien),"`Name`='%s'",playername);
    //Admin
    format(field,sizeof(field),"Admin");
    format(updatestring,128,"%d",SpielerInfo[playerid][Admin]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Flugschein
    format(field,sizeof(field),"FLSchein");
    format(updatestring,128,"%d",SpielerInfo[playerid][FLSchein]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //MSchein
    format(field,sizeof(field),"MSchein");
    format(updatestring,128,"%d",SpielerInfo[playerid][MSchein]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //FSchein
    format(field,sizeof(field),"FSchein");
    format(updatestring,128,"%d",SpielerInfo[playerid][FSchein]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //BSchein
    format(field,sizeof(field),"BSchein");
    format(updatestring,128,"%d",SpielerInfo[playerid][BSchein]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Weed
    format(field,sizeof(field),"Weed");
    format(updatestring,128,"%d",SpielerInfo[playerid][Weed]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //ZigMarke
    format(field,sizeof(field),"ZigMarke");
    format(updatestring,128,"%d",SpielerInfo[playerid][ZigMarke]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Zigaretten
    format(field,sizeof(field),"Zigaretten");
    format(updatestring,128,"%d",SpielerInfo[playerid][Zigaretten]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Bizz
    format(field,sizeof(field),"Bizz");
    format(updatestring,128,"%d",SpielerInfo[playerid][Bizz]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //HausID
    format(field,sizeof(field),"HausID");
    format(updatestring,128,"%d",SpielerInfo[playerid][HausID]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Geld
    format(field,sizeof(field),"Geld");
    format(updatestring,128,"%d",GetPlayerMoney(playerid));
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Level
    format(field,sizeof(field),"Level");
    format(updatestring,128,"%d",GetPlayerScore(playerid));
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Leader
    format(field,sizeof(field),"Leader");
    format(updatestring,128,"%d",SpielerInfo[playerid][Leader]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Member
    format(field,sizeof(field),"Member");
    format(updatestring,128,"%d",SpielerInfo[playerid][Member]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Rang
    format(field,sizeof(field),"Rang");
    format(updatestring,128,"%d",SpielerInfo[playerid][Rang]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Skin
    format(field,sizeof(field),"Skin");
    format(updatestring,128,"%d",GetPlayerSkin(playerid));
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Perso
    format(field,sizeof(field),"Perso");
    format(updatestring,128,"%d",SpielerInfo[playerid][Perso]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Job
    format(field,sizeof(field),"Job");
    format(updatestring,128,"%d",SpielerInfo[playerid][Job]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Mats
    format(field,sizeof(field),"Mats");
    format(updatestring,128,"%d",SpielerInfo[playerid][Mats]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Handy
    format(field,sizeof(field),"Handy");
    format(updatestring,128,"%d",SpielerInfo[playerid][Handy]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Guthaben
    format(field,sizeof(field),"Guthaben");
    format(updatestring,128,"%d",SpielerInfo[playerid][Guthaben]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Vertrag
    format(field,sizeof(field),"Vertrag");
    format(updatestring,128,"%d",SpielerInfo[playerid][Vertrag]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //VIP
    format(field,sizeof(field),"VIP");
    format(updatestring,128,"%d",SpielerInfo[playerid][VIP]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Supporter
    format(field,sizeof(field),"Supporter");
    format(updatestring,128,"%d",SpielerInfo[playerid][Supporter]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Respekt
    format(field,sizeof(field),"Respekt");
    format(updatestring,128,"%d",SpielerInfo[playerid][Respekt]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Telefonbuch
    format(field,sizeof(field),"Telefonbuch");
    format(updatestring,128,"%d",SpielerInfo[playerid][Telefonbuch]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Tutorial
    format(field,sizeof(field),"Tutorial");
    format(updatestring,128,"%d",SpielerInfo[playerid][Tutorial]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Bankkarte
    format(field,sizeof(field),"Bankkarte");
    format(updatestring,128,"%d",SpielerInfo[playerid][Bankkarte]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Bank
    format(field,sizeof(field),"Bank");
    format(updatestring,128,"%d",SpielerInfo[playerid][Bank]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Knast
    format(field,sizeof(field),"Knast");
    format(updatestring,128,"%d",SpielerInfo[playerid][Knast]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //KnastZeit
    format(field,sizeof(field),"KnastZeit");
    format(updatestring,128,"%d",SpielerInfo[playerid][KnastZeit]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //LVPass
    format(field,sizeof(field),"LVPass");
    format(updatestring,128,"%d",SpielerInfo[playerid][LVPass]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //SFPass
    format(field,sizeof(field),"SFPass");
    format(updatestring,128,"%d",SpielerInfo[playerid][SFPass]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Verwarnungen
    format(field,sizeof(field),"Verwarnungen");
    format(updatestring,128,"%d",SpielerInfo[playerid][Verwarnungen]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Punkte
    format(field,sizeof(field),"Punkte");
    format(updatestring,128,"%d",SpielerInfo[playerid][Punkte]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Local
    format(field,sizeof(field),"Local");
    format(updatestring,128,"%d",SpielerInfo[playerid][Local]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Versicherung
    format(field,sizeof(field),"Versicherung");
    format(updatestring,128,"%d",SpielerInfo[playerid][Versicherung]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Kanister
    format(field,sizeof(field),"Kanister");
    format(updatestring,128,"%d",SpielerInfo[playerid][Kanister]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //HatKanister
    format(field,sizeof(field),"HatKanister");
    format(updatestring,128,"%d",SpielerInfo[playerid][HatKanister]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //Verheiratet
    format(field,sizeof(field),"Verheiratet");
    format(updatestring,128,"%d",SpielerInfo[playerid][Weed]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    //VerheiratetMit
    format(field,sizeof(field),"VerheiratetMit");
    format(updatestring,128,"%s",SpielerInfo[playerid][VerheiratetMit]);
    format(query,sizeof(query),"UPDATE accounts SET %s='%s' WHERE %s",field,updatestring,bedien);
    mysql_query(query);
    mysql_free_result();
    return 1;
    }
    braucht ihr nochetwas?

    Hi Leute ich hab nen Problem mit meinen Dialogen...
    Wenn ich mich Registrieren will und auf Registrieren drücke kommt kein weiterer Dialog...
    Ich Benutze das StrickenKid MySQL Plugin
    Ich kann Normal drauf Spielen wenn ich auf Spawn Klicke..
    kann mit jemand Helfen
    wenn ihr Codes braucht sagt es weil ich habe keine ahnung welche ihr braucht.

    Hi Leute ich hab nen Problem mit den Spawnen.
    Das Problem ist:
    Wenn man zum ersten mal Spawnt dann wird das OnPlayerSpawn und das SetPlayerSpawn 3 mal aufgerufen [Godfather]
    aber Spawnen tut man nicht..
    Hier mal mein SetPlayerSpawn:
    forward SetPlayerSpawn(playerid);
    public SetPlayerSpawn(playerid)
    {
    printf("Callback SetPlayerSpawn von Spieler %s [ID: %d]",SpielerName(playerid),playerid);
    if(IsPlayerConnected(playerid))
    {
    new rand;
    new house = SpielerInfo[playerid][pPhousekey];
    if(PlayerPaintballing[playerid] != 0)
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 29, 999);
    rand = random(sizeof(PaintballSpawns));
    SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    return 1;
    }
    if(KnastTime[playerid] > 0)
    {
    SetPlayerToKnast(playerid,Knast[playerid]);
    SendClientMessage(playerid, COLOR_LIGHTRED, " Flüchten bringt nichts, zurück in die Zelle!");
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 1)
    {
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,198.3396,162.2801,1003.0300);
    SendClientMessage(playerid, COLOR_LIGHTRED, " Polizist:Zurück in die Zelle es wird nicht ausgebrochen! ");
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 2)
    {
    SetPlayerInterior(playerid,18);
    SetPlayerPos(playerid,-221.059051,1408.984008,27.773437);
    return 1;
    }
    if(SpielerInfo[playerid][pJailed] == 3)
    {
    SetPlayerInterior(playerid, 10);
    SetPlayerPos(playerid,223.9077,111.2334,999.0156);
    return 1;
    }
    if(MedicBill[playerid] == 1 && SpielerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
    {
    MedicBill[playerid] = 0;
    MedicTime[playerid] = 0;
    NeedMedicTime[playerid] = 0;
    SpielerInfo[playerid][pDeaths] += 1;
    SetPlayerHealth(playerid, 25.0);
    }
    if(SpielerInfo[playerid][pLeader] >= 1 || SpielerInfo[playerid][pMember] >= 1)
    {
    if(SpawnChange[playerid] == 1)
    {
    GivePlayerWeapons(playerid);
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,HouseInfo[house][hInt]);
    SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]);
    SpielerInfo[playerid][pLocal] = house;
    SpielerInfo[playerid][pInt] = HouseInfo[house][hInt];
    SetPlayerVirtualWorld(playerid,house);
    return 1;
    }
    else if(SpawnChange[playerid] == 0)
    {
    if (SpielerInfo[playerid][pMember] == 1 || SpielerInfo[playerid][pLeader] == 1)
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    rand = random(sizeof(gCopPlayerSpawns));
    SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]);
    SetPlayerFacingAngle(playerid,random(360));
    SetPlayerInterior(playerid,3);
    SpielerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 2 || SpielerInfo[playerid][pLeader] == 2) //SF Police spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 218.4133,119.3318,1003.2188);
    SetPlayerInterior(playerid,10);
    SpielerInfo[playerid][pInt] = 10;
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 3 || SpielerInfo[playerid][pLeader] == 3)//Bundeswehr spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 213.6955,1866.9175,13.1406);
    SpielerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 4 || SpielerInfo[playerid][pLeader] == 4)//Sanitäter spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,2036.1694,-1404.6766,17.2533);
    SetPlayerFacingAngle(playerid,146.7247);
    SpielerInfo[playerid][pInt] = 0;
    SetPlayerArmour(playerid,100);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 5 || SpielerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 1);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerPos(playerid,2169.8943,1604.6152,999.9706);
    SpielerInfo[playerid][pInt] = 1;
    return 1;
    }
    if (SpielerInfo[playerid][pLeader] == 6 || SpielerInfo[playerid][pMember] == 6)//Yakuza spawn
    {
    SetPlayerToTeamColor(playerid);// fraktions farbe
    GivePlayerWeapons(playerid);// spawn waffen
    SetPlayerInterior(playerid, 1);
    SetPlayerVirtualWorld(playerid,0);// virtuelle welt
    SetPlayerPos(playerid,-2170.3164,645.4327,1057.5938);//spawn koordinaten
    SetPlayerFacingAngle(playerid,180.2845);
    SpielerInfo[playerid][pInt] = 1;
    return 1;
    }
    if(SpielerInfo[playerid][pLeader] == 7)//Präsident spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1256.7922,-781.0903,92.0302);
    SpielerInfo[playerid][pInt] = 0;
    return 1;
    }
    if(SpielerInfo[playerid][pMember] == 7)//Bodyguard spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1256.7922,-781.0903,92.0302);
    SpielerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 8 || SpielerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,222.2941);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,3);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 9 || SpielerInfo[playerid][pLeader] == 9) //News spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, -2050.8962,460.0262,35.1719);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 10 || SpielerInfo[playerid][pLeader] == 10) //Taxi spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 1025.2363,-1358.8267,13.7266);
    SetPlayerFacingAngle(playerid,243.8503);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 12 || SpielerInfo[playerid][pLeader] == 12) //LS.Bikers Spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,488.5065,-82.2111,998.7578);
    SetPlayerFacingAngle(playerid,1.3445);
    SetPlayerInterior(playerid,11);
    SpielerInfo[playerid][pInt] = 1;
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 13 || SpielerInfo[playerid][pLeader] == 13) //GROOVE STREET FAMILIY
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,4);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 14 || SpielerInfo[playerid][pLeader] == 14) //BALLAS GANG
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,281.6475);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,6);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 15 || SpielerInfo[playerid][pLeader] == 15) //Fast and Furious
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,238.9020);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,7);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 16 || SpielerInfo[playerid][pLeader] == 16) //Los Santos Vagos
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,88.9785);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,8);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 17 || SpielerInfo[playerid][pLeader] == 17) //Varios Los Aztecas
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,134.9023);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,9);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 18 || SpielerInfo[playerid][pLeader] == 18) //San Fierro Rifa
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,271.0359);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,10);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 19 || SpielerInfo[playerid][pLeader] == 19) //W C Customs
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,146.4443);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,11);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 20 || SpielerInfo[playerid][pLeader] == 20) //Al Quaida
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,179.9684);
    SetPlayerInterior(playerid,8);
    SpielerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,12);
    GivePlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 21) //CIA Agenten spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 219.9247,69.6859,1005.0391);
    SetPlayerInterior(playerid,6);
    SpielerInfo[playerid][pInt] = 6;
    GivePlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][pLeader] == 21) //CIA Leader spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 219.9247,69.6859,1005.0391);
    SetPlayerInterior(playerid,6);
    SpielerInfo[playerid][pInt] = 6;
    GivePlayerWeapons(playerid);
    SetPlayerSkin(playerid,166);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 22 || SpielerInfo[playerid][pLeader] == 22) //Feuerwehr spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1491.6892,1306.2329,1093.2964);
    SetPlayerFacingAngle(playerid,270.7357);
    SetPlayerInterior(playerid,3);
    SpielerInfo[playerid][pInt] = 3;
    GivePlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 23 || SpielerInfo[playerid][pLeader] == 23) //Russenmafia spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,958.7915,2097.2166,1011.0226);
    SetPlayerFacingAngle(playerid,358.0643);
    SetPlayerInterior(playerid,1);
    SpielerInfo[playerid][pInt] = 1;
    GivePlayerWeapons(playerid);
    return 1;
    }
    if (SpielerInfo[playerid][pMember] == 24 || SpielerInfo[playerid][pLeader] == 24) //Oamt spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,918.4708,-1252.2200,16.2109);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    GivePlayerWeapons(playerid);
    return 1;
    }
    if ((gTeam[playerid]) == 1)
    {
    SetPlayerToTeamColor(playerid);
    rand = random(sizeof(gMedPlayerSpawns));
    SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,0);
    SpielerInfo[playerid][pInt] = 0;
    return 1;
    }
    }
    else if(SpielerInfo[playerid][pMember] == 0 || SpielerInfo[playerid][pLeader] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1715.8221,-1912.2717,13.5664);
    SetPlayerFacingAngle(playerid, 24.6935);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid,0);
    return 1;
    }
    }
    }
    return 1;
    }

    Wenn man schon gespawnt ist und stirbt bzw. Spawnt dann geht es aber wenn man Disconnected und wieder Connected dann spawnt man wieder irgendwo im Himmel