SA:MP BUg

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Das ist meines wissens nach nicht SA:MP sondern der mod CLEO

  • Hat was mit SetPlayerPos zu tuhn da musst di 1 zahl oder so gelöscht haben....

  • ne es kann sein dass du 1 zahl gelöscht hast weil es gibt kein error dann
    zeig mal onplayerspawn

  • public OnPlayerSpawn(playerid)
    {
    new playa[MAX_PLAYER_NAME];
    new string[256], string2[256], string3[256];
    GetPlayerName(playerid, playa, sizeof(playa));
    format(string3, sizeof(string3), "~y~Willkommen ~r~%s",
    playa);
    GameTextForPlayer(playerid,string, 5000, 1);
    if(AccountInfo[playerid][aAdmin] >= 1331)
    {
    format(string, sizeof(string), "SERVER: Du hast dich als %d Admin eingeloggt.", AccountInfo[playerid][aAdmin]);
    format(string2, sizeof(string2), "SERVER: You logged in as an %d Admin.", AccountInfo[playerid][aAdmin]);
    SendLanguageMessage(playerid, COLOR_WHITE,string, string2);
    }
    Spawn(playerid);
    return 1;
    }


    public Spawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "David", true))
    {
    PutPlayerInVehicle(playerid, Train, 0);
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 61);
    Attach3DTextLabelToVehicle(trainname, Train, 0, 0, 2);
    print("NPC David spawned succesfully");
    }
    if(!strcmp(npcname, "Curtis", true))
    {
    SetPlayerPos(playerid, -1981.9558,216.5025,27.6875);
    SetPlayerSkin(playerid, 19);
    SetPlayerColor(playerid,COLOR_GREY);
    print("NPC Curtis spawned succesfully");
    return 1;
    }
    if(!strcmp(npcname, "Hans", true))
    {
    PutPlayerInVehicle(playerid, Bus, 0);
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 61);
    Attach3DTextLabelToVehicle(busname, Bus, 0, 0, 2);
    print("NPC Hans spawned succesfully");
    }
    if(!strcmp(npcname, "Mike", true))
    {
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 28);
    SetPlayerPos(playerid, -2130.2844,118.7224,35.3203);
    print("NPC Mike spawned succesfully");
    Attach3DTextLabelToPlayer(mike, playerid, 0,0,2);
    }
    if(!strcmp(npcname, "Tempenny", true))
    {
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 280);
    PutPlayerInVehicle(playerid, SFPDCAR, 0);
    SetPlayerHealth(playerid, 200);
    print("NPC Tempenny spawned succesfully");
    }
    if(!strcmp(npcname, "Crank", true))
    {
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 20);
    SetPlayerPos(playerid, -2076.9883,90.5159,32.5000);
    print("NPC Crank spawned succesfully");
    }
    if(!strcmp(npcname, "Peter", true))
    {
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 67);
    SetPlayerPos(playerid, -2661.6501,1487.7900,7.1875);
    print("NPC Peter spawned succesfully");
    }
    return 1;
    }


    if(AccountInfo[playerid][aMember] == 0 || AccountInfo[playerid][aLeader] == 0)
    {
    SetPlayerPos(playerid, -1753.7471,957.9511,24.8828);
    SetPlayerFacingAngle(playerid, 184);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    AccountInfo[playerid][aSpawned] = 1;
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    if(IsAStateMember(playerid))
    {
    StateSpawn(playerid);
    }
    //PlayerMoney[playerid] = AccountInfo[playerid][aCash];
    return 1;
    }

  • versuch mal:
    public Spawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "David", true))
    {
    PutPlayerInVehicle(playerid, Train, 0);
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 61);
    Attach3DTextLabelToVehicle(trainname, Train, 0, 0, 2);
    print("NPC David spawned succesfully");
    }
    if(!strcmp(npcname, "Curtis", true))
    {
    SetPlayerPos(playerid, -1981.9558,216.5025,27.6875);
    SetPlayerSkin(playerid, 19);
    SetPlayerColor(playerid,COLOR_GREY);
    print("NPC Curtis spawned succesfully");
    return 1;
    }
    if(!strcmp(npcname, "Hans", true))
    {
    PutPlayerInVehicle(playerid, Bus, 0);
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 61);
    Attach3DTextLabelToVehicle(busname, Bus, 0, 0, 2);
    print("NPC Hans spawned succesfully");
    }
    if(!strcmp(npcname, "Mike", true))
    {
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 28);
    SetPlayerPos(playerid, -2130.2844,118.7224,35.3203);
    print("NPC Mike spawned succesfully");
    Attach3DTextLabelToPlayer(mike, playerid, 0,0,2);
    }
    if(!strcmp(npcname, "Tempenny", true))
    {
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 280);
    PutPlayerInVehicle(playerid, SFPDCAR, 0);
    SetPlayerHealth(playerid, 200);
    print("NPC Tempenny spawned succesfully");
    }
    if(!strcmp(npcname, "Crank", true))
    {
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 20);
    SetPlayerPos(playerid, -2076.9883,90.5159,32.5000);
    print("NPC Crank spawned succesfully");
    }
    if(!strcmp(npcname, "Peter", true))
    {
    SetPlayerColor(playerid,COLOR_GREY);
    SetPlayerSkin(playerid, 67);
    SetPlayerPos(playerid, -2661.6501,1487.7900,7.1875);
    print("NPC Peter spawned succesfully");
    }


    if(AccountInfo[playerid][aMember] == 0 || AccountInfo[playerid][aLeader] == 0)
    {
    SetPlayerPos(playerid, -1753.7471,957.9511,24.8828);
    SetPlayerFacingAngle(playerid, 184);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    AccountInfo[playerid][aSpawned] = 1;
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    if(IsAStateMember(playerid))
    {
    StateSpawn(playerid);
    }
    //PlayerMoney[playerid] = AccountInfo[playerid][aCash];
    return 1;
    }
    }


    ups, ne falsch