Arena 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 Community!


    Ich bin grad dabei ein Arena System zu erstellen und dass wenn er in einer Arena ist und aus dem Fahrzeug rausgeht das er wieder in Ls sozusagen ist.


    Hab das so gemacht


    /*if(dialogid==DIALOG_ARENA)
    {
    if(response==0)
    {
    }
    if(response==1)
    {
    if(listitem==0)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    CreateVehicle(464,-975.975708,1060.983032,1345.671875);
    PutPlayerInVehicle(playerid,vehicleid,0);
    if(GetPlayerOutOfVehicle(playerid));
    {
    SetPlayerPos(playerid,2692.4824,-1697.4353,10.4942);
    SetPlayerFacingAngle(playerid,48.5262);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    }
    if(listitem==1)
    {
    SetPlayerPos(playerid,-1398.065307,-217.028900,1051.115844);
    SetPlayerInterior(playerid,7);
    CreateVehicle(504,-1398.065307,-217.028900,1051.115844);
    PutPlayerInVehicle(playerid,vehicleid,0);
    if(GetPlayerOutOfVehicle(playerid));
    {
    SetPlayerPos(playerid,2692.4824,-1697.4353,10.4942);
    SetPlayerFacingAngle(playerid,48.5262);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    }
    if(listitem==2)
    {
    SetPlayerPos(playerid,-1398.103515,937.631164,1036.479125);
    SetPlayerInterior(playerid,15);
    CreateVehicle(556,-1398.103515,937.631164,1036.479125);
    PutPlayerInVehicle(playerid,vehicleid,0);
    if(GetPlayerOutOfVehicle(playerid));
    {
    SetPlayerPos(playerid,2692.4824,-1697.4353,10.4942);
    SetPlayerFacingAngle(playerid,48.5262);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    }
    if(listitem==3)
    {
    SetPlayerPos(playerid,-1444.645507,-664.526000,1053.572998);
    SetPlayerInterior(playerid,4);
    CreateVehicle(504,-1444.645507,-664.526000,1053.572998);
    PutPlayerInVehicle(playerid,vehicleid,0);
    if(GetPlayerOutOfVehicle(playerid));
    {
    SetPlayerPos(playerid,2692.4824,-1697.4353,10.4942);
    SetPlayerFacingAngle(playerid,48.5262);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    }
    if(listitem==4)
    {
    SetPlayerPos(playerid,-1465.268676,1557.868286,1052.531250);
    SetPlayerInterior(playerid,14);
    CreateVehicle(468,-1465.268676,1557.868286,1052.531250);
    PutPlayerInVehicle(playerid,vehicleid,0);
    if(GetPlayerOutOfVehicle(playerid));
    {
    SetPlayerPos(playerid,2692.4824,-1697.4353,10.4942);
    SetPlayerFacingAngle(playerid,48.5262);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    }
    return 1;
    }
    return 1;
    }*/


    aber das kommt das
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2139) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2139) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2139) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2139) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2140) : error 017: undefined symbol "vehicleid"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2141) : error 017: undefined symbol "GetPlayerOutOfVehicle"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2141) : error 036: empty statement
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2153) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2153) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2153) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2153) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2154) : error 017: undefined symbol "vehicleid"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2155) : error 017: undefined symbol "GetPlayerOutOfVehicle"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2155) : error 036: empty statement
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2167) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2167) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2167) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2167) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2168) : error 017: undefined symbol "vehicleid"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2169) : error 017: undefined symbol "GetPlayerOutOfVehicle"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2169) : error 036: empty statement
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2181) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2181) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2181) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2181) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2182) : error 017: undefined symbol "vehicleid"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2183) : error 017: undefined symbol "GetPlayerOutOfVehicle"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2183) : error 036: empty statement
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2195) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2195) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2195) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2195) : warning 202: number of arguments does not match definition
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2196) : error 017: undefined symbol "vehicleid"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2197) : error 017: undefined symbol "GetPlayerOutOfVehicle"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2197) : error 036: empty statement
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2842) : warning 203: symbol is never used: "azexit"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2842) : warning 203: symbol is never used: "gsexit"
    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(2842) : warning 203: symbol is never used: "vagosexit"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    15 Errors.


    hoffe das mir endlich mal einer helfen kann


    Mit freundlichen Grüßen
    Schokodonut

  • Sry nochmal hab das jetzt so gemacht aber wie mach ich das ich das Auto dann zerstöre hab das so gemacht.
    if(dialogid==DIALOG_ARENA)
    {
    if(response==0)
    {
    }
    if(response==1)
    {
    new vehicleid;
    if(listitem==0)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    CreateVehicle(464,-975.975708,1060.983032,1345.671875,32.2887,1,1,-1);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = 1;
    }
    if(listitem==1)
    {
    SetPlayerPos(playerid,-1398.065307,-217.028900,1051.115844);
    SetPlayerInterior(playerid,7);
    CreateVehicle(504,-1398.065307,-217.028900,1051.115844,32.2887,1,1,-1);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = 1;


    }
    if(listitem==2)
    {
    SetPlayerPos(playerid,-1398.103515,937.631164,1036.479125);
    SetPlayerInterior(playerid,15);
    CreateVehicle(556,-1398.103515,937.631164,1036.479125,32.2887,1,1,-1);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = 1;
    }
    if(listitem==3)
    {
    SetPlayerPos(playerid,-1444.645507,-664.526000,1053.572998);
    SetPlayerInterior(playerid,4);
    CreateVehicle(504,-1444.645507,-664.526000,1053.572998,32.2887,1,1,-1);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = 1;
    }
    if(listitem==4)
    {
    SetPlayerPos(playerid,-1465.268676,1557.868286,1052.531250);
    SetPlayerInterior(playerid,14);
    CreateVehicle(468,-1465.268676,1557.868286,1052.531250,32.2887,1,1,-1);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = 1;
    }
    return 1;
    }
    return 1;
    }


    if(oldstate == PLAYER_STATE_DRIVER&& newstate == PLAYER_STATE_ONFOOT )
    {
    if(SpielerInfo[playerid][pArena] == 1)
    {
    SetPlayerPos(playerid,2692.4824,-1697.4353,10.4942);
    SetPlayerFacingAngle(playerid,48.5262);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    DestroyVehicle(vehicleid);
    }

    }
    aber es kommt ein Error
    Das ist wegen dem vehicleid muss ich das oben einfach nochmal definieren?


    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(1836) : error 017: undefined symbol "vehicleid"

  • ich habe es nur so gemacht new vehicleid;
    if(dialogid==DIALOG_ARENA)
    {
    if(response==0)
    {
    }
    if(response==1)
    {
    new vehicleid;
    if(listitem==0)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    CreateVehicle(464,-975.975708,1060.983032,1345.671875,32.2887,1,1,-1);
    GetPlayerVehicleID(playerid);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = vehicleid;
    }
    if(listitem==1)
    {
    SetPlayerPos(playerid,-1398.065307,-217.028900,1051.115844);
    SetPlayerInterior(playerid,7);
    CreateVehicle(504,-1398.065307,-217.028900,1051.115844,32.2887,1,1,-1);
    GetPlayerVehicleID(playerid);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = vehicleid;


    }
    if(listitem==2)
    {
    SetPlayerPos(playerid,-1398.103515,937.631164,1036.479125);
    SetPlayerInterior(playerid,15);
    CreateVehicle(556,-1398.103515,937.631164,1036.479125,32.2887,1,1,-1);
    GetPlayerVehicleID(playerid);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = vehicleid;
    }
    if(listitem==3)
    {
    SetPlayerPos(playerid,-1444.645507,-664.526000,1053.572998);
    SetPlayerInterior(playerid,4);
    CreateVehicle(504,-1444.645507,-664.526000,1053.572998,32.2887,1,1,-1);
    GetPlayerVehicleID(playerid);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = vehicleid;
    }
    if(listitem==4)
    {
    SetPlayerPos(playerid,-1465.268676,1557.868286,1052.531250);
    SetPlayerInterior(playerid,14);
    CreateVehicle(468,-1465.268676,1557.868286,1052.531250,32.2887,1,1,-1);
    GetPlayerVehicleID(playerid);
    PutPlayerInVehicle(playerid,vehicleid,0);
    SpielerInfo[playerid][pArena] = vehicleid;
    }
    return 1;
    }
    return 1;
    }
    if(oldstate == PLAYER_STATE_DRIVER&& newstate == PLAYER_STATE_ONFOOT )
    {
    new vehicleid;
    if(SpielerInfo[playerid][pArena] > 0)
    {
    SetPlayerPos(playerid,2692.4824,-1697.4353,10.4942);
    SetPlayerFacingAngle(playerid,48.5262);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    DestroyVehicle(vehicleid);
    }

    }