Spawn fehler.

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 habe ein Problem undzwar...


    Wenn ich "Cop" auswähle spawn er beim bauernhof das selbe ist auch bei "Robber"


    if(clickedid == CopsSkin)
    {
    SetPlayerPos(playerid,1526.3693,-1677.5197,5.8906);
    SetPlayerSkin(playerid,283);
    SetCameraBehindPlayer(playerid);
    SendClientMessage(playerid,blau,"Du bist nun Cop! Benutze /help um alle Befehle zu sehen");
    GivePlayerWeapon(playerid,24,1111111);
    GivePlayerWeapon(playerid,29,1111111);
    GivePlayerWeapon(playerid,25,1111111);
    CancelSelectTextDraw(playerid);
    TextDrawHideForPlayer(playerid,CopsSkin);
    TextDrawHideForPlayer(playerid,RobberSkin);
    TextDrawHideForPlayer(playerid,AuswahlBox);
    TextDrawHideForPlayer(playerid,CopsText);
    TextDrawHideForPlayer(playerid,RobbersText);
    TextDrawHideForPlayer(playerid,oderText);
    SpawnPlayer(playerid);
    }
    if(clickedid == RobberSkin)
    {
    SetPlayerPos(playerid,1115.9500,-1778.5627,13.5895);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,105);
    SendClientMessage(playerid,gelb,"Du bist nun Robber! Benutze /help um alle Befehle zu sehen");
    GivePlayerWeapon(playerid,24,1111111);
    GivePlayerWeapon(playerid,2,1);
    GivePlayerWeapon(playerid,28,1111111);
    TextDrawHideForPlayer(playerid,CopsSkin);
    TextDrawHideForPlayer(playerid,RobberSkin);
    TextDrawHideForPlayer(playerid,AuswahlBox);
    TextDrawHideForPlayer(playerid,CopsText);
    TextDrawHideForPlayer(playerid,RobbersText);
    TextDrawHideForPlayer(playerid,oderText);
    CancelSelectTextDraw(playerid);
    SpawnPlayer(playerid);
    }

  • Geht immer noch nicht if(clickedid == CopsSkin)
    {
    SetPlayerPos(playerid,1526.3693,-1677.5197,5.8906);
    SetPlayerSkin(playerid,283);
    SetCameraBehindPlayer(playerid);
    SendClientMessage(playerid,blau,"Du bist nun Cop! Benutze /help um alle Befehle zu sehen");
    GivePlayerWeapon(playerid,24,1111111);
    GivePlayerWeapon(playerid,29,1111111);
    GivePlayerWeapon(playerid,25,1111111);
    CancelSelectTextDraw(playerid);
    TextDrawHideForPlayer(playerid,CopsSkin);
    TextDrawHideForPlayer(playerid,RobberSkin);
    TextDrawHideForPlayer(playerid,AuswahlBox);
    TextDrawHideForPlayer(playerid,CopsText);
    TextDrawHideForPlayer(playerid,RobbersText);
    TextDrawHideForPlayer(playerid,oderText);
    SpawnPlayer(playerid);
    }
    else if(clickedid == RobberSkin)
    {
    SetPlayerPos(playerid,1115.9500,-1778.5627,13.5895);
    SetCameraBehindPlayer(playerid);
    SetPlayerSkin(playerid,105);
    SendClientMessage(playerid,gelb,"Du bist nun Robber! Benutze /help um alle Befehle zu sehen");
    GivePlayerWeapon(playerid,24,1111111);
    GivePlayerWeapon(playerid,2,1);
    GivePlayerWeapon(playerid,28,1111111);
    TextDrawHideForPlayer(playerid,CopsSkin);
    TextDrawHideForPlayer(playerid,RobberSkin);
    TextDrawHideForPlayer(playerid,AuswahlBox);
    TextDrawHideForPlayer(playerid,CopsText);
    TextDrawHideForPlayer(playerid,RobbersText);
    TextDrawHideForPlayer(playerid,oderText);
    CancelSelectTextDraw(playerid);
    SpawnPlayer(playerid);
    }