paar erros

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
  • hab grad ein paar probs mit meinem script undzwar krieg ein paar erros nicht weg...


    C:\Users\Leroy\Desktop\Scripts\Eigen\******.pwn(259) : error 017: undefined symbol "SetPlayerClass"
    C:\Users\Leroy\Desktop\Scripts\Eigen\******.pwn(261) : error 017: undefined symbol "SetupPlayerForClassSelection"
    C:\Users\Leroy\Desktop\Scripts\Eigen\******.pwn(263) : error 017: undefined symbol "classid"
    C:\Users\Leroy\Desktop\Scripts\Eigen\******.pwn(265) : error 017: undefined symbol "classid"
    C:\Users\Leroy\Desktop\Scripts\Eigen\******.pwn(283) : error 002: only a single statement (or expression) can follow each "case"
    C:\Users\Leroy\Desktop\Scripts\Eigen\******.pwn(283) : warning 215: expression has no effect


    SetupPlayerForClassSelection(playerid);


    gPlayerClass[playerid] = classid;


    switch (classid) {


    case 0:


    {


    GameTextForPlayer(playerid, "~g~ SetupPlayerForClassSelection(playerid);


    gPlayerClass[playerid] = classid;


    switch (classid) {


    case 0:


    {


    GameTextForPlayer(playerid, "~g~ SetupPlayerForClassSelection(playerid);


    gPlayerClass[playerid] = classid;


    switch (classid) {


    case 0:


    {


    GameTextForPlayer(playerid, "~g~******", 500, 3);


    }


    case 1:


    {


    GameTextForPlayer(playerid, "~g~MENSCHEN", 500, 3);


    }


    return 1;", 500, 3);


    }


    case 1:


    {


    GameTextForPlayer(playerid, "~g~MENSCHEN", 500, 3);


    }


    return 1;", 500, 3);


    }


    case 1:


    {


    GameTextForPlayer(playerid, "~g~MENSCHEN", 500, 3);


    }


    return 1;

  • omg der dir das gesagt hat der sollte nie wider mit pwn arbeiten aber gut


    Hmm also so kannst du das machen



    forward SetupPlayerForClassSelection(playerid);//Das nach ganz oben


    //Dann das hier


    public SetupPlayerForClassSelection(playerid)
    {
    SetPlayerPos(playerid, 2182.2908,1285.7317,42.9620);
    SetPlayerFacingAngle(playerid, 89.8567);
    SetPlayerCameraPos(playerid, 2177.5269,1285.3782,44.0867);
    SetPlayerCameraLookAt(playerid, 2182.2908,1285.7317,42.9620);
    //PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
    }


    da hast du erst mal ne sicht wo man die skins aus suchen kannst


    jetzt das was ich denke was du willst


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerClass(playerid,classid);
    SetupPlayerForClassSelection(playerid);
    gPlayerClass[playerid] = classid;
    switch (classid) {


    case 0:
    {
    GameTextForPlayer(playerid, "~g~Grove", 1200, 3);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~g~Grove", 1200, 3);
    }
    case 2:
    {
    GameTextForPlayer(playerid, "~g~Grove", 1200, 3);
    }
    case 3:
    {
    GameTextForPlayer(playerid, "~r~Cops", 1200, 3);
    }
    case 4:
    {
    GameTextForPlayer(playerid, "~r~Cops", 1200, 3);
    }
    case 5:
    {
    GameTextForPlayer(playerid, "~r~Cops", 1200, 3);
    }
    case 6:
    {
    GameTextForPlayer(playerid, "~y~Penner", 1200, 3);
    }
    case 7:
    {
    GameTextForPlayer(playerid, "~y~Penner", 1200, 3);
    }
    case 8:
    {
    GameTextForPlayer(playerid, "~y~Penner", 1200, 3);
    }
    }
    return 1;
    }


    Muss aber alles auch auf dein gm anpassen

  • hmmm ok da hab ich nurnoch 3 errors


    C:\Users\Leroy\Desktop\Scripts\Eigen\*******.pwn(259) : error 017: undefined symbol "SetPlayerClass"
    C:\Users\Leroy\Desktop\Scripts\Eigen\*******.pwn(261) : error 017: undefined symbol "classid"
    C:\Users\Leroy\Desktop\Scripts\Eigen\*******.pwn(262) : error 017: undefined symbol "classid"


    public OnPlayerRequestSpawn(playerid)
    {
    SetPlayerClass(playerid,classid);
    SetupPlayerForClassSelection(playerid);
    gPlayerClass[playerid] = classid;
    switch (classid) {


    case 0:
    {
    GameTextForPlayer(playerid, "~g~*******", 1200, 3);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~g~MENSCHEN", 1200, 3);
    }


    }
    return 1;
    }