Probleme mit Raven's Roleplay auf Englisch [Fraktionen Spawn]

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
  • Hallo ich wollte eben es so machen das die Fraktionen dort Spawnen wo ihre Base ist.


    Ich habe es so gemacht:



    public OnPlayerSpawn(playerid)


    {
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{}
    case 1:{SetPlayerPos(playerid,LSPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 2:{SetPlayerPos(playerid,FBISpawn);GivePlayerWeapon(playerid,18,10);}
    case 3:{SetPlayerPos(playerid,SurenosSpawn);GivePlayerWeapon(playerid,18,10);}
    case 4:{SetPlayerPos(playerid,SignatraSpawn);GivePlayerWeapon(playerid,18,10);}
    case 5:{SetPlayerPos(playerid,ArmySpawn);GivePlayerWeapon(playerid,18,10);}
    case 6:{SetPlayerPos(playerid,SFPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 7:{SetPlayerPos(playerid,LVPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 8:{SetPlayerPos(playerid,FDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 9:{SetPlayerPos(playerid,LaViceSpawn);GivePlayerWeapon(playerid,18,10);}
    case 10:{SetPlayerPos(playerid,SonsOfAnarchySpawn);GivePlayerWeapon(playerid,18,10);}
    case 11:{SetPlayerPos(playerid,SKSpawn);GivePlayerWeapon(playerid,18,10);}
    case 12:{SetPlayerPos(playerid,MedicSpawn);GivePlayerWeapon(playerid,18,10);}
    case 13:{SetPlayerPos(playerid,SwatSpawn);GivePlayerWeapon(playerid,18,10);}
    case 14:{SetPlayerPos(playerid,HitmanSpawn);GivePlayerWeapon(playerid,18,10);}
    }
    return 1;
    }


    Und oben im Script habe ich:


    [pwn]
    //Spawns
    #define LSPDSpawn 1571.9734,-1694.7366,5.4608
    #define FBISpawn 1531.4615,-1478.8479,9.5432
    #define ArmySpawn 2772.4231,-2354.1746,15.3014
    #define MedicSpawn 1182.9384,-1314.0101,13.7059
    #define SKSpawn 694.5745,-466.9713,15.8766
    #define SWATSpawn 1544.4252,-1654.9655,6.0225
    #define SFPDSpawn -1937.4652,297.0116,47.8444
    #define LVPDSpawn 2264.0220,1399.6082,42.4374
    #define FDSpawn 599.3893,-1519.8585,15.1724
    #define SurenosSpawn 1826.9275,-2039.7380,13.2444
    #define SignatraSpawn 1242.3684,-807.4321,84.0231
    #define LaViceSpawn 147.6993,-1754.9312,4.8489
    #define SonsOfAnarchySpawn 690.3946,-439.8338,16.9225
    #define HitmenSpawn 1081.7549,-314.0566,73.5864


    Aber leider wenn ich es Compilieren will dann kommt:


    "Pawn Compiler libary funktioniert nicht mehr."


    Wenn ich das unter OnPlayerSpawn wegenehme dann kann ich es Compilieren.


    Ich bin mir nicht sicher ob das hier etwas damit zutun hat:



    if(gTeam[playerid] == 3)
    {
    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "You are part of a Family/Force, you've been forced to the right Class + Char !");
    MedicBill[playerid] = 0;
    new model = PlayerInfo[playerid][pChar];
    if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
    else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
    else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
    else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
    else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
    else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
    else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
    else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
    else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
    else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
    else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }


    Hoffe ihr könnt mir helfen.


    Gruß PsYcH0999

  • #define LSPDSpawn 1571.9734,-1694.7366,5.4608
    #define FBISpawn 1531.4615,-1478.8479,9.5432
    #define ArmySpawn 2772.4231,-2354.1746,15.3014
    #define MedicSpawn 1182.9384,-1314.0101,13.7059
    #define SKSpawn 694.5745,-466.9713,15.8766
    #define SWATSpawn 1544.4252,-1654.9655,6.0225
    #define SFPDSpawn -1937.4652,297.0116,47.8444
    #define LVPDSpawn 2264.0220,1399.6082,42.4374
    #define FDSpawn 599.3893,-1519.8585,15.1724
    #define SurenosSpawn 1826.9275,-2039.7380,13.2444
    #define SignatraSpawn 1242.3684,-807.4321,84.0231
    #define LaViceSpawn 147.6993,-1754.9312,4.8489
    #define SonsOfAnarchySpawn 690.3946,-439.8338,16.9225
    #define HitmenSpawn 1081.7549,-314.0566,73.5864


    Habe noch nie gehört, dass man einem Define Namen mehrere Float Werte zurweisen kann. Mach einfach:
    new Float:Spawns[][] =
    {
    {x,y,z}, {x,y,z}, {x,y,z}, usw.
    }


    Kann mich aber auch irren ;)

  • public OnPlayerSpawn(playerid)


    {
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{}
    case 1:{
    SetPlayerPos(playerid,LSPDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 2:{
    SetPlayerPos(playerid,FBISpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 3:{
    SetPlayerPos(playerid,SurenosSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 4:{
    SetPlayerPos(playerid,SignatraSpawn);
    GivePlayerWeapon(playerid,18,10);// und das machst du bei jedem case
    }
    case 5:{SetPlayerPos(playerid,ArmySpawn);GivePlayerWeapon(playerid,18,10);}
    case 6:{SetPlayerPos(playerid,SFPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 7:{SetPlayerPos(playerid,LVPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 8:{SetPlayerPos(playerid,FDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 9:{SetPlayerPos(playerid,LaViceSpawn);GivePlayerWeapon(playerid,18,10);}
    case 10:{SetPlayerPos(playerid,SonsOfAnarchySpawn);GivePlayerWeapon(playerid,18,10);}
    case 11:{SetPlayerPos(playerid,SKSpawn);GivePlayerWeapon(playerid,18,10);}
    case 12:{SetPlayerPos(playerid,MedicSpawn);GivePlayerWeapon(playerid,18,10);}
    case 13:{SetPlayerPos(playerid,SwatSpawn);GivePlayerWeapon(playerid,18,10);}
    case 14:{SetPlayerPos(playerid,HitmanSpawn);GivePlayerWeapon(playerid,18,10);}
    }
    return 1;
    }


    Und oben im Script habe ich:


    [pwn]
    //Spawns
    #define LSPDSpawn 1571.9734,-1694.7366,5.4608
    #define FBISpawn 1531.4615,-1478.8479,9.5432
    #define ArmySpawn 2772.4231,-2354.1746,15.3014
    #define MedicSpawn 1182.9384,-1314.0101,13.7059
    #define SKSpawn 694.5745,-466.9713,15.8766
    #define SWATSpawn 1544.4252,-1654.9655,6.0225
    #define SFPDSpawn -1937.4652,297.0116,47.8444
    #define LVPDSpawn 2264.0220,1399.6082,42.4374
    #define FDSpawn 599.3893,-1519.8585,15.1724
    #define SurenosSpawn 1826.9275,-2039.7380,13.2444
    #define SignatraSpawn 1242.3684,-807.4321,84.0231
    #define LaViceSpawn 147.6993,-1754.9312,4.8489
    #define SonsOfAnarchySpawn 690.3946,-439.8338,16.9225
    #define HitmenSpawn 1081.7549,-314.0566,73.5864

  • THX probiere eben mal melde mich glei nomma


    //Edit: Kommt wieder ein Fehler.


    Pawn Compiler libary funktioniert nicht mehr.



    public OnPlayerSpawn(playerid)


    {
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{}
    case 1:{
    SetPlayerPos(playerid,LSPDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 2:{
    SetPlayerPos(playerid,FBISpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 3:{
    SetPlayerPos(playerid,SurenosSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 4:{
    SetPlayerPos(playerid,SignatraSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 5:{
    SetPlayerPos(playerid,ArmySpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 6:{
    SetPlayerPos(playerid,SFPDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 7:{
    SetPlayerPos(playerid,LVPDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 8:{
    SetPlayerPos(playerid,FDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 9:{
    SetPlayerPos(playerid,LaViceSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 10:{
    SetPlayerPos(playerid,SonsOfAnarchySpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 11:{
    SetPlayerPos(playerid,SKSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 12:{
    SetPlayerPos(playerid,MedicSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 13:{
    SetPlayerPos(playerid,SwatSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 14:{
    SetPlayerPos(playerid,HitmanSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    return 1;
    }

    Heiße nun "Whit3Dev!L", ehemals "PsYcH0999"!

    Einmal editiert, zuletzt von PsYcH0999 ()

  • @Flummi: Wie soll das denn funktionieren?
    @PsYcH0999: Mach' es einfach, wie EvilToastBroat meinte.
    new Float:Spawn[][3] =
    {
    {1571.9734,-1694.7366,5.4608},
    {1531.4615,-1478.8479,9.5432},
    {2772.4231,-2354.1746,15.3014}
    // usw.
    };
    // Anwendung
    case 1:
    {
    SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2]);
    GivePlayerWeapon(playerid,18,10);
    }

    Moderator der Bereiche: Coding, Vorstellungsrunde und Handelsecke. Über Verwarnungen, falls du zu den Wenigen gehörst, die eine Verwarnung von mir erhalten haben, kannst du jederzeit mit mir reden, sofern der Umgangston stimmt.


    expect us. / unkompetent. Das neue dynamisch. / easy-stripping.net - coming soon! / "9§. the entire website bestands out of english." / Vollprofi in allem, wo gibt und noch mehr; kann auch OOP.
    Kleine Coding-Frage? Schau doch in #dev im IRC vorbei, wir können dir sicher helfen.


    Ich bin für Aufträge im Bereich der Webentwicklung (z.B. User Control Panel) zu haben. Kontaktiere mich diesbezüglich einfach in einer privaten Nachricht mit deinen, möglichst konkreten, Vorstellungen.


    lesen.denken.posten. - [22:54:14] <Goldkiller2> früher gabs immer so coole user da stand in der signatur "lesen.denken.posten."


    Mafia 2 Multiplayer (m2mp.de) - Eine kostenlose Modifikation für Mafia 2, die es, ähnlich wie SAMP, erlaubt über das Internet oder LAN mit bis zu 1000 anderen Spielern zu spielen.

  • @dead


    Also beides reinschreiben? new Float und die cases? oder nur new Float


    //Edit: Bei "case 1:" kommt:


    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(9001) : error 010: invalid function or declaration

    Heiße nun "Whit3Dev!L", ehemals "PsYcH0999"!

    Einmal editiert, zuletzt von PsYcH0999 ()

  • Oben im Script statt deinen Defines den Array und bei deinem alten Case-Teil einfach wie ich es angewendet habe verwenden (SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2]), SetPlayerPos(playerid, Spawn[1][0], Spawn[1][1], Spawn[1][2]), usw.). Außerdem würde ich nicht case 0 verwenden, wenn es keine Verwendung hat, einfach weg lassen oder durch default ersetzen.

    Moderator der Bereiche: Coding, Vorstellungsrunde und Handelsecke. Über Verwarnungen, falls du zu den Wenigen gehörst, die eine Verwarnung von mir erhalten haben, kannst du jederzeit mit mir reden, sofern der Umgangston stimmt.


    expect us. / unkompetent. Das neue dynamisch. / easy-stripping.net - coming soon! / "9§. the entire website bestands out of english." / Vollprofi in allem, wo gibt und noch mehr; kann auch OOP.
    Kleine Coding-Frage? Schau doch in #dev im IRC vorbei, wir können dir sicher helfen.


    Ich bin für Aufträge im Bereich der Webentwicklung (z.B. User Control Panel) zu haben. Kontaktiere mich diesbezüglich einfach in einer privaten Nachricht mit deinen, möglichst konkreten, Vorstellungen.


    lesen.denken.posten. - [22:54:14] <Goldkiller2> früher gabs immer so coole user da stand in der signatur "lesen.denken.posten."


    Mafia 2 Multiplayer (m2mp.de) - Eine kostenlose Modifikation für Mafia 2, die es, ähnlich wie SAMP, erlaubt über das Internet oder LAN mit bis zu 1000 anderen Spielern zu spielen.

  • Also so:



    (SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2],
    SetPlayerPos(playerid, Spawn[1][0], Spawn[1][1], Spawn[1][2],
    SetPlayerPos(playerid, Spawn[2][0], Spawn[2][1], Spawn[2][2],
    SetPlayerPos(playerid, Spawn[3][0], Spawn[3][1], Spawn[3][2],
    SetPlayerPos(playerid, Spawn[4][0], Spawn[4][1], Spawn[4][2],
    SetPlayerPos(playerid, Spawn[5][0], Spawn[5][1], Spawn[5][2],
    SetPlayerPos(playerid, Spawn[6][0], Spawn[6][1], Spawn[6][2],
    SetPlayerPos(playerid, Spawn[7][0], Spawn[7][1], Spawn[7][2],
    SetPlayerPos(playerid, Spawn[8][0], Spawn[8][1], Spawn[8][2],
    SetPlayerPos(playerid, Spawn[9][0], Spawn[9][1], Spawn[9][2],
    SetPlayerPos(playerid, Spawn[10][0], Spawn[10][1], Spawn[10][2],
    SetPlayerPos(playerid, Spawn[11][0], Spawn[11][1], Spawn[11][2],
    SetPlayerPos(playerid, Spawn[12][0], Spawn[12][1], Spawn[12][2],
    SetPlayerPos(playerid, Spawn[13][0], Spawn[13][1], Spawn[13][2],
    SetPlayerPos(playerid, Spawn[14][0], Spawn[14][1], Spawn[14][2]);
    GivePlayerWeapon(playerid,18,10);


    //Edit: Jetzt hab ich noch die Errors:



    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(8999) : error 021: symbol already defined: "SetPlayerPos"
    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(84003) : warning 203: symbol is never used: "Spawn"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.



    new Float:Spawn[][14] =
    {
    {1571.9734,-1694.7366,5.4608},
    {1531.4615,-1478.8479,9.5432},
    {2772.4231,-2354.1746,15.3014},
    {1182.9384,-1314.0101,13.7059},
    {694.5745,-466.9713,15.8766},
    {1544.4252,-1654.9655,6.0225},
    {-1937.4652,297.0116,47.8444},
    {2264.0220,1399.6082,42.4374},
    {599.3893,-1519.8585,15.1724},
    {1826.9275,-2039.7380,13.2444},
    {1242.3684,-807.4321,84.0231},
    {147.6993,-1754.9312,4.8489},
    {690.3946,-439.8338,16.9225},
    {1081.7549,-314.0566,73.5864},
    };


    Zeile 8999: SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2],
    SetPlayerPos(playerid, Spawn[1][0], Spawn[1][1], Spawn[1][2],
    SetPlayerPos(playerid, Spawn[2][0], Spawn[2][1], Spawn[2][2],
    SetPlayerPos(playerid, Spawn[3][0], Spawn[3][1], Spawn[3][2],
    SetPlayerPos(playerid, Spawn[4][0], Spawn[4][1], Spawn[4][2],
    SetPlayerPos(playerid, Spawn[5][0], Spawn[5][1], Spawn[5][2],
    SetPlayerPos(playerid, Spawn[6][0], Spawn[6][1], Spawn[6][2],
    SetPlayerPos(playerid, Spawn[7][0], Spawn[7][1], Spawn[7][2],
    SetPlayerPos(playerid, Spawn[8][0], Spawn[8][1], Spawn[8][2],
    SetPlayerPos(playerid, Spawn[9][0], Spawn[9][1], Spawn[9][2],
    SetPlayerPos(playerid, Spawn[10][0], Spawn[10][1], Spawn[10][2],
    SetPlayerPos(playerid, Spawn[11][0], Spawn[11][1], Spawn[11][2],
    SetPlayerPos(playerid, Spawn[12][0], Spawn[12][1], Spawn[12][2],
    SetPlayerPos(playerid, Spawn[13][0], Spawn[13][1], Spawn[13][2],
    SetPlayerPos(playerid, Spawn[14][0], Spawn[14][1], Spawn[14][2];
    GivePlayerWeapon(playerid,18,10);



    Zeile 84003 existiert nicht.


    //Edit2: Und wenn ich mich Leader LSPD mache Spawne ich immer da wo ich war und ich hab zivi Skin also der Speichert die Skins iwie auch net

    Heiße nun "Whit3Dev!L", ehemals "PsYcH0999"!

    2 Mal editiert, zuletzt von PsYcH0999 ()

  • Habe es jetzt so:



    new Float:Spawn[][14] =
    {
    {1571.9734,-1694.7366,5.4608},
    {1531.4615,-1478.8479,9.5432},
    {2772.4231,-2354.1746,15.3014},
    {1182.9384,-1314.0101,13.7059},
    {694.5745,-466.9713,15.8766},
    {1544.4252,-1654.9655,6.0225},
    {-1937.4652,297.0116,47.8444},
    {2264.0220,1399.6082,42.4374},
    {599.3893,-1519.8585,15.1724},
    {1826.9275,-2039.7380,13.2444},
    {1242.3684,-807.4321,84.0231},
    {147.6993,-1754.9312,4.8489},
    {690.3946,-439.8338,16.9225},
    {1081.7549,-314.0566,73.5864},
    };


    SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2],
    SetPlayerPos(playerid, Spawn[1][0], Spawn[1][1], Spawn[1][2],
    SetPlayerPos(playerid, Spawn[2][0], Spawn[2][1], Spawn[2][2],
    SetPlayerPos(playerid, Spawn[3][0], Spawn[3][1], Spawn[3][2],
    SetPlayerPos(playerid, Spawn[4][0], Spawn[4][1], Spawn[4][2],
    SetPlayerPos(playerid, Spawn[5][0], Spawn[5][1], Spawn[5][2],
    SetPlayerPos(playerid, Spawn[6][0], Spawn[6][1], Spawn[6][2],
    SetPlayerPos(playerid, Spawn[7][0], Spawn[7][1], Spawn[7][2],
    SetPlayerPos(playerid, Spawn[8][0], Spawn[8][1], Spawn[8][2],
    SetPlayerPos(playerid, Spawn[9][0], Spawn[9][1], Spawn[9][2],
    SetPlayerPos(playerid, Spawn[10][0], Spawn[10][1], Spawn[10][2],
    SetPlayerPos(playerid, Spawn[11][0], Spawn[11][1], Spawn[11][2],
    SetPlayerPos(playerid, Spawn[12][0], Spawn[12][1], Spawn[12][2],
    SetPlayerPos(playerid, Spawn[13][0], Spawn[13][1], Spawn[13][2],
    SetPlayerPos(playerid, Spawn[14][0], Spawn[14][1], Spawn[14][2];
    GivePlayerWeapon(playerid,18,10);


    Dann kommen folgende Errors:



    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(8998) : error 021: symbol already defined: "Spawn"
    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(9016) : error 021: symbol already defined: "SetPlayerPos"
    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(84020) : warning 203: symbol is never used: "Spawn"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    Zeile 8998: new Float:Spawn[][14] =


    Zeile 9016: SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2],


    Zeile 84020: Gibts nicht.


    Und wenn ich mich Leader LSPD mache Spawne ich immer da wo ich war und ich hab zivi Skin also der Speichert die Skins irgendwie auch nicht.


    Hoffe mir kann jemand helfen.


    //Edit: Oder kann wer per TeamViewer mal nachgucken? Wenn ja schreibt mich mal per PN an.

    Heiße nun "Whit3Dev!L", ehemals "PsYcH0999"!

    Einmal editiert, zuletzt von PsYcH0999 ()

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen