Brauche Hilfe bei Char Auswahlr Text

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
  • Moin, ich möchte bei der Char auswahl stehen haben Team grove etc aber immer bekomme ich diese Errors/Warnings

    Code
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(59) : error 055: start of function body without function header
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(64) : error 010: invalid function or declaration
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(66) : error 010: invalid function or declaration
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(97) : warning 202: number of arguments does not match definition



    Eigentlich müsste da sdoch klappen oder? Wen ich da was falsch gemacht habe bitte Schreiben, danke

  • für was 2 gleiche sachen so müsste es eig. gehn:
    public OnGameModeInit()
    {


    SetGameModeText("Fun Deathmatch");
    AddStaticVehicle(492,1536.2927,-887.2026,61.0732,101.2572,13,13); //
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 22, 999, 28, 999, 0, 0);//Team Grove
    AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 22, 999, 28, 999, 0, 0);//Team Grove
    AddPlayerClass(106, 1958.3783, 1343.1572, 15.3746, 269.1425, 22, 999, 28, 999, 0, 0);//Team Grove
    AddPlayerClass(107, 1958.3783, 1343.1572, 15.3746, 269.1425, 22, 999, 28, 999, 0, 0);//Team Grove
    AddStaticVehicle(436,1527.0470,-891.9395,60.8923,10.4330,87,1); //
    AddStaticVehicle(507,1532.2377,-847.9956,65.4464,147.1525,125,125); //
    lossantosvagos = GangZoneCreate(2269.447, -1058.119, 2889.309, -904.1568);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid,classid)


    if(classid == 0 || classid == 1 || classid == 2 || classid == 3)
    {
    GameTextForPlayer(playerid,"~g~Grove Street",3000,3);
    }
    {
    SetPlayerPos(playerid, 1449.8280,-2287.5422,13.5469);
    SetPlayerCameraPos(playerid, 1446.0238,-2287.4514,13.5469);
    SetPlayerCameraLookAt(playerid, 1449.8280,-2287.5422,13.5469);
    SetPlayerFacingAngle(playerid, 90.0);
    return 1;
    }

  • Klappt nicht immer noch diese Errors.


    Code
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(59) : error 055: start of function body without function header
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(64) : error 010: invalid function or declaration
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(94) : warning 202: number of arguments does not mat

    ch definition

  • poste mall die zeilen 58 -95



    //edit machs so vllt gehts;


    switch (classid) {
    case 0:
    {
    GameTextForPlayer(playerid, "~g~Groove", 500, 3);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~b~Groove", 500, 3);
    }
    case 2:
    {
    GameTextForPlayer(playerid, "~r~Groove", 500, 3);
    }

    Einmal editiert, zuletzt von [PSC]Tuner[PWN] ()

  • Errors:


    Code
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(69) : error 002: only a single statement (or expression) can follow each "case"
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(74) : error 010: invalid function or declaration
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(104) : warning 202: number of arguments does not match definition



    Und so hab ich das eingetragen:


    Code
    public OnGameModeExit()


    {
    return 1;
    }


    public OnPlayerRequestClass(playerid,classid)


    switch (classid) {


    case 0:
    {
    GameTextForPlayer(playerid, "~g~Groove", 500, 3);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~b~Groove", 500, 3);
    }
    case 2:
    {
    GameTextForPlayer(playerid, "~r~Groove", 500, 3);
    }
    {
    SetPlayerPos(playerid, 1449.8280,-2287.5422,13.5469);
    SetPlayerCameraPos(playerid, 1446.0238,-2287.4514,13.5469);
    SetPlayerCameraLookAt(playerid, 1449.8280,-2287.5422,13.5469);
    SetPlayerFacingAngle(playerid, 90.0);
    return 1;
    }

  • so:


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid,classid)
    {
    switch (classid) {
    case 0:
    {
    GameTextForPlayer(playerid, "~g~Groove", 500, 3);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~b~Groove", 500, 3);
    }
    case 2:
    {
    GameTextForPlayer(playerid, "~r~Groove", 500, 3);
    }
    }
    //------------------------------------------------------------------------
    SetPlayerPos(playerid, 1449.8280,-2287.5422,13.5469);
    SetPlayerCameraPos(playerid, 1446.0238,-2287.4514,13.5469);
    SetPlayerCameraLookAt(playerid, 1449.8280,-2287.5422,13.5469);
    SetPlayerFacingAngle(playerid, 90.0);
    return 1;
    }



    Gehts?

    Einmal editiert, zuletzt von [PSC]Tuner[PWN] ()

  • Das mit Grove klappt, hab nun mal selber probiert mit Ballas, aber ging nicht, wenn ich das mit Ballas entferne gehts wieder


    Hier das OnPlayerRequestClass:



    Und hier die Errors:


    Code
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(93) : error 001: expected token: ",", but found ";"
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(97) : error 001: expected token: ",", but found ";"
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(99) : error 001: expected token: ":", but found ";"
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(99) : error 036: empty statement
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(101) : error 001: expected token: ",", but found ";"
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(104) : error 021: symbol already defined: "SetPlayerPos"
    C:\Programme\Rockstar Games\GTA San Andreas\pawno\Tobias.pwn(108) : error 010: invalid function or declaration