Beiträge von German_ScripterHD

    Um was geht es denn? Kannst du das momentane Problem bitte nochmal erklären, so als wäre es der erste Post? Ich kann mir keine zweieinhalb Seiten Code durchlesen und dann noch durchblicken. :whistling:


    Jeffry:
    Ja, ich kann dir erklären um was es gerade geht. Die Variable sInfo[playerid][spawnpunkt] läd aus der Datenbank die Zahl "20" (also er soll dann an Hausid 20 spawnen) der print ergibt nach den Laden 20 so wie es sein soll, bei onplayerspawn, noch vor der for-Schleife, ist dann plötzlich sInfo[playerid][spawnpunkt] nicht mehr "20" sondern "111". Ich habe es auch schon mit der Zahl "1" ausprobiert, da kommt dann aber auch irgendwie "111" bei raus.


    //1. Edit:


    Zitat von SynonymousZ

    printf("[OnPlayerSpawn] - sInfo[playerid][spawnpunkt] = %d",sInfo[playerid][spawnpunkt]);


    print hat wieder das ergeben:

    [OnPlayerSpawn] - sInfo[playerid][spawnpunkt] = 111


    //2. Edit:


    Habe eine Zwischen Variable einbegaut, klappt jetzt.
    Ein Danke an alle :thumbup::thumbup:
    MfG :D

    Zur Not kannst du ja auch mal dein ganzen OnPlayerSpawn uns zeigen, vielleicht verbirgt sich ja dort noch einen Fehler.
    Ansonsten weiß ich auch nichts mehr, denn du hast ja gesagt du konntest in deinem ganzen Script nichts finden.


    Jo, ich konnte nichts finden.


    OnPlayerSpawn:


    Spoiler anzeigen
    public OnPlayerSpawn(playerid)
    {
    Attach3DTextLabelToPlayer(AFKLabel[playerid], playerid, 0.0, 0.0, 0.7);
    if(tot[playerid] == 1)
    {
    if(sInfo[playerid][wanted]>0)
    {
    ocmd_krankenhausjail(playerid,"");
    }
    if(sInfo[playerid][wanted]==0)
    {
    switch (GetPVarInt(playerid, "i"))
    {
    case 0:
    {
    SetPlayerPos(playerid, 2034.1149,-1414.9154,16.9922);
    SetPlayerFacingAngle(playerid, 133.3335);
    }
    case 1:
    {
    SetPlayerPos(playerid, 1182.1077,-1324.0918,13.5815);
    SetPlayerFacingAngle(playerid, 270.4434);
    }
    case 2:
    {
    SetPlayerPos(playerid, 1244.3423,331.9934,19.5547);
    SetPlayerFacingAngle(playerid, 335.6859);
    }
    case 3:
    {
    SetPlayerPos(playerid, 1607.6090,1821.0934,10.8280);
    SetPlayerFacingAngle(playerid, 0.7354);
    }
    case 4:
    {
    SetPlayerPos(playerid, -317.0090,1056.6217,19.7422);
    SetPlayerFacingAngle(playerid, 358.9579);
    }
    case 5:
    {
    SetPlayerPos(playerid, -1514.7358,2527.0601,55.7455);
    SetPlayerFacingAngle(playerid, 359.0611);
    }
    case 6:
    {
    SetPlayerPos(playerid, -2661.2441,633.7098,14.4531);
    SetPlayerFacingAngle(playerid, 180.1544);
    }
    case 7:
    {
    SetPlayerPos(playerid, -2198.7803,-2306.5793,30.6250);
    SetPlayerFacingAngle(playerid, 320.6338);
    }
    }
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,sInfo[playerid][skin]);
    tot[playerid] = 0;
    return 1;
    }
    return 1;
    }
    Hunger[playerid] = 100, hbHealth[playerid] = 100;
    HungerBar[playerid] = CreatePlayerProgressBar(playerid, 547.5, 58.0, 59.0, 5, COLOR_GREEN, 100.0);
    ShowPlayerProgressBar(playerid, HungerBar[playerid]);
    SetPlayerProgressBarValue(playerid, HungerBar[playerid], 100);
    UpdatePlayerProgressBar(playerid, HungerBar[playerid]);
    progressUpdater[playerid] = SetTimer("HungerProgressBar", 90000, true);
    if(sInfo[playerid][jailed])
    {
    sInfo[playerid][jail]=0;
    new jailid = GetFreeJail();
    SetPlayerPos(playerid,jailInfo[jailid][jail_x],jailInfo[jailid][jail_y],jailInfo[jailid][jail_z]);
    SetPlayerFacingAngle(playerid,jailInfo[jailid][jail_angle]);
    TogglePlayerControllable(playerid,0);
    SetTimerEx("Freezzer",350,0,"i",playerid);
    SetTimerEx("UpdatePlayerJail",60000,false,"i",playerid);
    sInfo[playerid][jail]=jailid;
    return 1;
    }
    PlayerTextDrawShow(playerid, UhrzeitText[playerid]);
    PlayerTextDrawShow(playerid, hpanzeige[playerid]);
    EnableBoast[playerid] = 0;
    //NPC/Skin
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,botname,sizeof(botname));
    if(!strcmp(botname,"[NPC]Herbert",true))
    {
    SetPlayerSkin(playerid,26);
    }
    if(!strcmp(botname,"[NPC]Manfred",true))
    {
    SetPlayerSkin(playerid,26);
    }
    if(!strcmp(botname,"[NPC]xxSevenxx",true))
    {
    SetPlayerSkin(playerid,26);
    }
    }
    if(IsPlayerNPC(playerid))return 1;
    SetPlayerSkin(playerid,sInfo[playerid][skin]);
    SetPlayerColor(playerid, 0xFFFFFF00);
    printf("[OnPlayerSpawn]-[Vor Schleife] sInfo[playerid][spawnpunkt] == %d",sInfo[playerid][spawnpunkt]);
    sInfo[playerid][spawnpunkt] = 1;
    //sInfo[playerid][spawnpunkt] = 20;
    if(sInfo[playerid][spawnpunkt] > 0)
    {
    for(new i=0; i<sizeof(hInfo); i++)
    {
    printf("hInfo[i][h_id] == %d",hInfo[i][h_id]);
    printf("sInfo[playerid][spawnpunkt] == %d",sInfo[playerid][spawnpunkt]);
    if(hInfo[i][h_id]==sInfo[playerid][spawnpunkt])
    {
    if(!hInfo[i][h_id])continue;
    if(!strlen(hInfo[i][h_besitzer]))continue;
    if(strcmp(hInfo[i][h_besitzer], getPlayerName(playerid), true))continue;
    if(hInfo[i][ih_x] != 0.0)
    {
    //Im Haus spawnen
    SetPlayerPos(playerid, hInfo[i][ih_x], hInfo[i][ih_y], hInfo[i][ih_z]);
    SetPlayerInterior(playerid, hInfo[i][h_interior]);
    SetPlayerVirtualWorld(playerid, hInfo[i][h_id]);
    }
    else
    {
    //Vorm Haus Spawnen
    SetPlayerPos(playerid, hInfo[i][h_x], hInfo[i][h_y], hInfo[i][h_z]);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    }
    }
    }
    /*if(!isPlayerInFrakt(playerid, 0)){
    if(sInfo[playerid][spawnchange]==1)
    {
    new fID;
    fID = sInfo[playerid][fraktion];
    SetPlayerPos(playerid, fInfo[fID][f_x],fInfo[fID][f_y],fInfo[fID][f_z]);
    SetPlayerFacingAngle(playerid, fInfo[fID][f_r]);
    SetPlayerInterior(playerid, fInfo[fID][f_inter]);
    SetPlayerVirtualWorld(playerid, fInfo[fID][f_world]);
    SetPlayerColor(playerid, fInfo[fID][f_color]);
    }
    }*/
    return 1;
    }

    Also das mit dem Varialblenname umbennenen hat nichts gebracht.


    ocmd:enterexit


    [19:29:32] World: 0 - h_id: 0
    [19:29:32] World: 0 - h_id: 0
    [19:29:32] World: 0 - h_id: 0
    [19:29:32] World: 0 - h_id: 0
    [19:29:32] World: 0 - h_id: 0
    [19:29:32] World: 0 - h_id: 0
    [19:29:32] World: 0 - h_id: 0
    [19:29:32] World: 0 - h_id: 0
    //... usw...

    Ja, das habe ich mir gedacht, das ist aber nicht die Lösung von dem Problem. Irgendwo im Script wirst du das irgendwie zurücksetzen, wie oder wo du das machst das weiß ich nicht. Am besten du suchst im ganzen Script noch einmal nach, vielleicht findest du ja was. Falls du Includes oder Filterscripts verwendest, da auch nochmals suchen (nur die, die du selbst geschrieben hast).


    Würde es vllt. funktioieren wenn ich den Variablenname umbennene?



    Wenn ich im Haus spawn, funkioniert ocmd:enterexit nicht, wenn ich mich aber töte, und gege danach zu den Haus, und tippe /enterexit, komme ich ins Haus und auch wieder raus.

    Habs jetzt so:


    sInfo[playerid][spawnpunkt] = 1;
    if(sInfo[playerid][spawnpunkt] > 0)
    {
    for(new i=0; i<sizeof(hInfo); i++)
    {


    Das klappt.


    Aber noch ein zweiter Bug... wenn ich jetzt im Haus spawn klappt mein ocmd:enterexit nicht mehr...


    Code:


    ocmd:enterexit(playerid,params[])
    {
    for(new i = 0; i != MAX_HOUSES; i++)//Haus Exit zu Enter
    {
    if(hInfo[i][h_id] == GetPlayerVirtualWorld(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid, 5, hInfo[i][ih_x],hInfo[i][ih_y],hInfo[i][ih_z]))
    {
    SetPlayerPos(playerid, hInfo[i][h_x], hInfo[i][h_y], hInfo[i][h_z]);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    }
    }
    for(new i=0; i<sizeof(hInfo); i++)
    {
    if(!hInfo[i][h_id])continue;
    if(hInfo[i][ih_x]==0.0)continue;
    if(!IsPlayerInRangeOfPoint(playerid,2,hInfo[i][h_x],hInfo[i][h_y],hInfo[i][h_z]))continue;
    SetPlayerPos(playerid,hInfo[i][ih_x],hInfo[i][ih_y],hInfo[i][ih_z]);
    SetPlayerInterior(playerid,hInfo[i][h_interior]);
    SetPlayerVirtualWorld(playerid,hInfo[i][h_id]);
    if(IsPlayerMieter(playerid,hInfo[i][h_id])) SendClientMessage(playerid,COLOR_GRAY,"Mieter...");
    return 1;
    }
    return 1;
    }

    sInfo[playerid][spawnpunkt]


    Also hier kommt das alles vor:


    Spieler landen:

    sInfo[playerid][spawnpunkt] = cache_get_field_content_int(0,"spawnpunkt",dbhandle);
    printf("spawnpunkt nach dem laden: %d",sInfo[playerid][spawnpunkt]);


    Und bei OnPlayerSpawn:


    printf("[OnPlayerSpawn]-[Vor Schleife] sInfo[playerid][spawnpunkt] == %d",sInfo[playerid][spawnpunkt]);
    if(sInfo[playerid][spawnpunkt] > 0)
    {
    for(new i=0; i<sizeof(hInfo); i++)
    {
    printf("hInfo[i][h_id] == %d",hInfo[i][h_id]);
    printf("sInfo[playerid][spawnpunkt] == %d",sInfo[playerid][spawnpunkt]);
    if(hInfo[i][h_id]==20)
    {
    if(!hInfo[i][h_id])continue;
    if(!strlen(hInfo[i][h_besitzer]))continue;
    if(strcmp(hInfo[i][h_besitzer], getPlayerName(playerid), true))continue;
    if(hInfo[i][ih_x] != 0.0)
    {
    //Im Haus spawnen
    SetPlayerPos(playerid, hInfo[i][ih_x], hInfo[i][ih_y], hInfo[i][ih_z]);
    SetPlayerInterior(playerid, hInfo[i][h_interior]);
    SetPlayerVirtualWorld(playerid, i);
    }
    else
    {
    //Vorm Haus Spawnen
    SetPlayerPos(playerid, hInfo[i][h_x], hInfo[i][h_y], hInfo[i][h_z]);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    }
    }
    }


    Das war alles...

    Also...


    Ich habe es jetzt so: (geht aber leider immernoch nicht)


    Spoiler anzeigen
    public OnPasswordResponse(playerid)
    {
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields,dbhandle);
    if(num_rows==1)
    {
    new money_string[128];
    //Passwort richtig //Spieler laden
    SendClientMessage(playerid,C_Blau,"Erfolgreich eingeloggt.");
    sInfo[playerid][eingeloggt] = 1;
    sInfo[playerid][level] = cache_get_field_content_int(0,"level",dbhandle);
    SetPlayerScore(playerid,sInfo[playerid][level]);
    sInfo[playerid][db_id] = cache_get_field_content_int(0,"id",dbhandle);
    sInfo[playerid][geld] = cache_get_field_content_int(0,"money",dbhandle);
    sInfo[playerid][alevel] = cache_get_field_content_int(0,"alevel",dbhandle);
    sInfo[playerid][fraktion] = cache_get_field_content_int(0,"fraktion",dbhandle);
    sInfo[playerid][rang] = cache_get_field_content_int(0,"rang",dbhandle);
    sInfo[playerid][bank] = cache_get_field_content_int(0,"bank",dbhandle);
    sInfo[playerid][spawnchange] = cache_get_field_content_int(0,"spawnchange",dbhandle);
    sInfo[playerid][prison] = cache_get_field_content_int(0,"prison",dbhandle);
    sInfo[playerid][Donator] = cache_get_field_content_int(0,"Donator",dbhandle);
    sInfo[playerid][CarLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][BikeLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][FlugLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][LkwLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][BootLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][skin] = cache_get_field_content_int(0,"skin",dbhandle);
    sInfo[playerid][vehicles] = cache_get_field_content_int(0,"vehicles",dbhandle);
    sInfo[playerid][payday] = cache_get_field_content_int(0,"payday",dbhandle);
    sInfo[playerid][donats] = cache_get_field_content_int(0,"donats",dbhandle);
    sInfo[playerid][radio] = cache_get_field_content_int(0,"radio",dbhandle);
    sInfo[playerid][navi] = cache_get_field_content_int(0,"navi",dbhandle);
    sInfo[playerid][respekt] = cache_get_field_content_int(0,"respekt",dbhandle);
    sInfo[playerid][job] = cache_get_field_content_int(0,"job",dbhandle);
    sInfo[playerid][wanted] = cache_get_field_content_int(0,"wanted",dbhandle);
    sInfo[playerid][handynummer] = cache_get_field_content_int(0,"handynummer",dbhandle);
    sInfo[playerid][spawnpunkt] = cache_get_field_content_int(0,"spawnpunkt",dbhandle);
    printf("spawnpunkt nach dem laden: %d",sInfo[playerid][spawnpunkt]);
    cache_get_field_content(0,"username",sInfo[playerid][username],dbhandle,32);
    sInfo[playerid][fightstyle] = cache_get_field_content_int(0,"fightstyle",dbhandle);
    SetPlayerFightingStyle(playerid,sInfo[playerid][fightstyle]);
    SetPlayerSkin(playerid,sInfo[playerid][skin]);
    SetSpawnInfo(playerid,0,sInfo[playerid][skin],439.3006,-1752.2723,8.7708,221.4513,0,0,0,0,0,0);
    SpawnPlayer(playerid);


    Jetzt habe ich mal in der Datenbank nicht "1" sondern "20" eingetragen, aber es kommt dieser ServerLog dabei raus:

    Spoiler anzeigen

    [12:43:58] spawnpunkt nach dem laden: 20
    //_________________________________//
    [12:43:58] hInfo[i][h_id] == 1
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 3
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 5
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 7
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 8
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 9
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 10
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 11
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 12
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 13
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 14
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 15
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 16
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 19
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 20
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 21
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 22
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 23
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 24
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 25
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 0
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 0
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 0
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    [12:43:58] hInfo[i][h_id] == 0
    [12:43:58] sInfo[playerid][spawnpunkt] == 111
    //......


    Ich hoffe ihr könnt mir helfen :)


    //Edit:
    Habe das noch eingefügt vor der for Schleife:
    printf("[OnPlayerSpawn]-[Vor (for-Schleife)] sInfo[playerid][spawnpunkt] == %i",sInfo[playerid][spawnpunkt]);
    [12:57:08] [OnPlayerSpawn]-[Vor (for-Schleife)] sInfo[playerid][spawnpunkt] == 111
    MfG :thumbup:

    Jetzt verzweifele ich immer mehr ...?(


    Der print hat das ergeben:

    [02:16:21] spawnpunkt nach dem laden: 1


    Aber das kommt wieder bei spawn:


    [02:16:21] hInfo[i][h_id] == 1
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 3
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 5
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 7
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 8
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 9
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 10
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 11
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 12
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 13
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 14
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 15
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 16
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 19
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 20
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 21
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 22
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 23
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 24
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 25
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    [02:16:21] hInfo[i][h_id] == 0
    [02:16:21] sInfo[playerid][spawnpunkt] == 111
    //....

    public OnPasswordResponse(playerid)
    {
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields,dbhandle);
    if(num_rows==1)
    {
    new money_string[128];
    //Passwort richtig //Spieler laden
    SetSpawnInfo(playerid,0,sInfo[playerid][skin],439.3006,-1752.2723,8.7708,221.4513,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    SendClientMessage(playerid,C_Blau,"Erfolgreich eingeloggt.");
    sInfo[playerid][eingeloggt] = 1;
    sInfo[playerid][level] = cache_get_field_content_int(0,"level",dbhandle);
    SetPlayerScore(playerid,sInfo[playerid][level]);
    sInfo[playerid][db_id] = cache_get_field_content_int(0,"id",dbhandle);
    sInfo[playerid][geld] = cache_get_field_content_int(0,"money",dbhandle);
    sInfo[playerid][alevel] = cache_get_field_content_int(0,"alevel",dbhandle);
    sInfo[playerid][fraktion] = cache_get_field_content_int(0,"fraktion",dbhandle);
    sInfo[playerid][rang] = cache_get_field_content_int(0,"rang",dbhandle);
    sInfo[playerid][bank] = cache_get_field_content_int(0,"bank",dbhandle);
    sInfo[playerid][spawnchange] = cache_get_field_content_int(0,"spawnchange",dbhandle);
    sInfo[playerid][prison] = cache_get_field_content_int(0,"prison",dbhandle);
    sInfo[playerid][Donator] = cache_get_field_content_int(0,"Donator",dbhandle);
    sInfo[playerid][CarLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][BikeLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][FlugLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][LkwLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][BootLic] = cache_get_field_content_int(0,"CarLic",dbhandle);
    sInfo[playerid][skin] = cache_get_field_content_int(0,"skin",dbhandle);
    sInfo[playerid][vehicles] = cache_get_field_content_int(0,"vehicles",dbhandle);
    sInfo[playerid][payday] = cache_get_field_content_int(0,"payday",dbhandle);
    sInfo[playerid][donats] = cache_get_field_content_int(0,"donats",dbhandle);
    sInfo[playerid][radio] = cache_get_field_content_int(0,"radio",dbhandle);
    sInfo[playerid][navi] = cache_get_field_content_int(0,"navi",dbhandle);
    sInfo[playerid][respekt] = cache_get_field_content_int(0,"respekt",dbhandle);
    sInfo[playerid][job] = cache_get_field_content_int(0,"job",dbhandle);
    sInfo[playerid][wanted] = cache_get_field_content_int(0,"wanted",dbhandle);
    sInfo[playerid][handynummer] = cache_get_field_content_int(0,"handynummer",dbhandle);
    sInfo[playerid][spawnpunkt] = cache_get_field_content_int(0,"spawnpunkt",dbhandle);
    cache_get_field_content(0,"username",sInfo[playerid][username],dbhandle,32);
    sInfo[playerid][fightstyle] = cache_get_field_content_int(0,"fightstyle",dbhandle);
    SetPlayerFightingStyle(playerid,sInfo[playerid][fightstyle]);
    SetPlayerSkin(playerid,sInfo[playerid][skin]);

    public OnHausesLoad()
    {
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields);
    if(!num_rows)return 1;
    //for(new i = 0; i < MAX_HOUSES; i++)
    for(new i = 0; i < num_rows; i++)
    {
    new id = getFreeHausID();
    new string[24];
    hInfo[id][h_x] = cache_get_field_content_float(i, "h_x", dbhandle);
    hInfo[id][h_y] = cache_get_field_content_float(i, "h_y", dbhandle);
    hInfo[id][h_z] = cache_get_field_content_float(i, "h_z", dbhandle);
    if(hInfo[id][h_x] == 0 && hInfo[id][h_y] == 0 && hInfo[id][h_z] == 0)continue;
    hInfo[id][ih_x] = cache_get_field_content_float(i, "ih_x", dbhandle);
    hInfo[id][ih_y] = cache_get_field_content_float(i, "ih_y", dbhandle);
    hInfo[id][ih_z] = cache_get_field_content_float(i, "ih_z", dbhandle);
    hInfo[id][h_interior] = cache_get_field_content_int(i, "h_interior", dbhandle);


    cache_get_field_content(i, "besitzer", string);
    format(hInfo[id][h_besitzer], sizeof(string), string);


    hInfo[id][h_id] = cache_get_field_content_int(i, "id", dbhandle);
    hInfo[id][h_preis] = cache_get_field_content_int(i, "h_preis", dbhandle);
    hInfo[id][h_mietpreis] = cache_get_field_content_int(i, "h_mietpreis", dbhandle);
    hInfo[id][h_maxmieter] = cache_get_field_content_int(i, "h_maxmieter", dbhandle);
    new printstring[90];
    format(printstring,sizeof(printstring),"i = %d - id = %d - MySQLID: %d - Besitzer: %s", i, id, hInfo[id][h_id],hInfo[id][h_besitzer]);
    print(printstring);
    CreatePickup(19523,1,hInfo[id][ih_x],hInfo[id][ih_y],hInfo[id][ih_z],id);
    }


    print("Zweite Schleife:");


    new highid = getFreeHausID();
    for(new i = 0; i < highid; i++)
    {
    updateHaus(i);
    }
    return 1;
    }

    Okay, habe es jetzt so gemacht.


    Prints:


    Spoiler anzeigen
    [01:59:17] hInfo[i][h_id] == 1
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 3
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 5
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 7
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 8
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 9
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 10
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 11
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 12
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 13
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 14
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 15
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 16
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 19
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 20
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 21
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 22
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 23
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 24
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 25
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:17] sInfo[playerid][spawnpunkt] == 111
    [01:59:17] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111
    [01:59:18] hInfo[i][h_id] == 0
    [01:59:18] sInfo[playerid][spawnpunkt] == 111

    Habs jetzt so:
    public OnPlayerSpawn(playerid)
    {
    if(sInfo[playerid][spawnpunkt] > 0)
    {
    for(new i=0; i<sizeof(hInfo); i++)
    {
    if(hInfo[i][h_id]==sInfo[playerid][spawnpunkt])
    {
    printf("hInfo[i][h_id] == %i",hInfo[i][h_id]);
    printf("sInfo[playerid][spawnpunkt] == %i",hInfo[i][h_id]);
    if(!hInfo[i][h_id])continue;
    if(!strlen(hInfo[i][h_besitzer]))continue;
    if(strcmp(hInfo[i][h_besitzer], getPlayerName(playerid), true))continue;
    if(hInfo[i][ih_x] != 0.0)
    {
    //Im Haus spawnen
    SetPlayerPos(playerid, hInfo[i][ih_x], hInfo[i][ih_y], hInfo[i][ih_z]);
    SetPlayerInterior(playerid, hInfo[i][h_interior]);
    SetPlayerVirtualWorld(playerid, i);
    }
    else
    {
    //Vorm Haus Spawnen
    SetPlayerPos(playerid, hInfo[i][h_x], hInfo[i][h_y], hInfo[i][h_z]);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    }
    }
    }



    Der print wurde nicht ausgeführt.

    Danke SLaYz das klappt jetzt schonmal. Jetzt habe ich nurnoch ein Problem:


    Wenn ich jetzt spawn, sollte ich normaler weiße in meinem Haus spawnen. Leider passiert das nicht und ich spawnen am Zivispawn. Bei sInfo[playerid][spawnpunkt] wird die hausid gespeichert wo der spieler spawnen soll...


    Code:


    public OnPlayerSpawn(playerid)
    {
    if(sInfo[playerid][spawnpunkt] > 0)
    {
    for(new i=0; i<sizeof(hInfo); i++)
    {
    if(hInfo[i][h_id]==sInfo[playerid][spawnpunkt])
    {
    if(!hInfo[i][h_id])continue;
    if(!strlen(hInfo[i][h_besitzer]))continue;
    if(strcmp(hInfo[i][h_besitzer], getPlayerName(playerid), true))continue;
    if(hInfo[i][ih_x] != 0.0)
    {
    //Im Haus spawnen
    SetPlayerPos(playerid, hInfo[i][ih_x], hInfo[i][ih_y], hInfo[i][ih_z]);
    SetPlayerInterior(playerid, hInfo[i][h_interior]);
    SetPlayerVirtualWorld(playerid, i);
    }
    else
    {
    //Vorm Haus Spawnen
    SetPlayerPos(playerid, hInfo[i][h_x], hInfo[i][h_y], hInfo[i][h_z]);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    }
    }
    }
    //.....


    Ich hoffe ihr könnt mir helfen :)


    MfG :thumbup:

    Hallo Brotfische,


    Ich habe mir eine eigene giveplayermoney Funktion gescriptet (wegen Anti-Moneycheat), Wenn jetzt ein Spieler z.B. "00005174" $ hat, und ich führe den Befehl "/givemoney ID -4 " aus, sollte ja der Spieler dann noch "00005170" $ haben. Leider hat er aber "00005178" $ also es wird irgenwie Plus gerechnet.


    Codes:

    giveplayermoney(playerid,money)
    {
    new string[128];
    if(money > 0)
    {
    sInfo[playerid][geld]+=money;
    format(string, sizeof(string), "%08d", sInfo[playerid][geld]);
    PlayerTextDrawSetString(playerid,Money_Anzeige[playerid][2], string);
    format(string, sizeof(string),"~g~+%d$", money);
    }
    else if(money < 0)
    {
    sInfo[playerid][geld]-=money;
    format(string, sizeof(string), "%08d", sInfo[playerid][geld]);
    print(string);
    PlayerTextDrawSetString(playerid,Money_Anzeige[playerid][2], string);
    format(string, sizeof(string),"~r~%d$", money);
    }
    GameTextForPlayer(playerid, string, 1000, 1);
    return 1;
    }


    ocmd:givemoney(playerid,params[])
    {
    if(!isAdmin(playerid,1337)) return SendClientMessage(playerid, C_Error, "Du hast keine Berechtigung für diesen Befehl!");
    new pID, money,string[128];
    if(sscanf(params,"ui",pID,money)) return SendClientMessage(playerid,C_Weiß,"/givemoney [id] [Betrag]");
    giveplayermoney(pID, money);
    format(string,sizeof(string),"Du hast %i$ bekommen.",money);
    SendClientMessage(pID,C_Blau,string);
    return 1;
    }



    Ich hoffe ihr könnt mir helfen :)


    MfG :thumbup:

    Hallo Brotfische,


    Ich bekomme 4 Warningcodes bei meinem Handysystem weiß aber nicht an was es liegt.


    Code:


    Warningcodes:
    warning 213: tag mismatch
    warning 213: tag mismatch
    warning 213: tag mismatch
    warning 213: tag mismatch


    Scriptcode:


    ocmd:h(playerid)
    {
    if(sInfo[playerid][TelefoniertGerade]==false)return SendClientMessage(playerid,C_Error,"Du telefonierst im Moment nicht ..!"); //Fehler
    sInfo[playerid][TelefoniertGerade] = false;
    SendClientMessage(sInfo[playerid][TelefonPartner],C_Error,"Dein Gesprächspartner hat aufgelegt bzw. deinen Anruf abgelehnt!");
    SendClientMessage(playerid,C_Error,"Du hast aufgelegt!");
    sInfo[playerid][TelefonPartner] = -1;
    sInfo[TelefonPartner][TelefoniertGerade] = false;
    sInfo[TelefonPartner][TelefonPartner] = -1;
    return 1;
    }


    ocmd:p(playerid)
    {
    if(sInfo[playerid][TelefoniertGerade]==false)return SendClientMessage(playerid,C_Error,"Du telephonist im moment garnicht."); //Fehler
    sInfo[playerid][TelefoniertGerade] = true;
    SendClientMessage(sInfo[playerid][TelefonPartner],COLOR_BLUE,"Dein Gesprächspartner hat deinen Anruf angenommen! Du kannst jetzt im Chat mit ihm schreiben.");
    return 1;
    }


    OnPlayerText:


    if(sInfo[playerid][TelefoniertGerade] == true) //Fehler
    {
    format(string,sizeof string,"%s(Handy): %s",text);
    SendClientMessage(playerid,COLOR_GRAY,string);
    format(string,sizeof string,"%s(Handy): %s",ggPlayerName[playerid],text);
    SendClientMessage(sInfo[playerid][TelefonPartner],COLOR_WHITE,string);
    }


    OnPlayerDisconnect:


    if(sInfo[playerid][TelefoniertGerade] == true) //Fehler
    {
    SendClientMessage(sInfo[playerid][TelefonPartner],C_Error,"Dein Gesprächspartner ist gerade offline gegangen! Das Gespräch wurde beendet!");
    sInfo[playerid][TelefoniertGerade] = false;
    sInfo[playerid][TelefonPartner] = -1;
    }
    sInfo[playerid][TelefoniertGerade] = false;
    sInfo[playerid][TelefonPartner] = -1;


    Ich hoffe ihr könnt mir helfen :)


    MfG :thumbup: