Beiträge von Schokodonut

    Hallo weiß zufällig jemand wie ich die Icon die ich in Word als bild habe wie ich die im Ts als Icon machen kann?

    Hallo ich brauche noch einmal eure hilfe undzwar bei meinem Frakcarsystem die Autos respawnen nicht


    if (strcmp("/respawncar", cmdtext, true, 10) == 0)
    {
    new string[128];
    if(SpielerInfo[playerid][pRang] > 17)
    {
    if(SpielerInfo[playerid][pFraktion] == 1)
    {
    for(new i= 0;i<sizeof(lspdcars);i++)
    {
    if(IsVehicleEmpty(lspdcars[i]))return SetVehicleToRespawn(lspdcars[i]);
    }
    for(new j = 0; j < MAX_PLAYERS; j++)
    {
    if(IsPlayerInFrakt(j,1))
    {
    format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
    SendClientMessage(j,COLOR_KOMISCH,string);
    return 1;
    }
    }
    }
    if(SpielerInfo[playerid][pFraktion] == 2)
    {
    for(new i= 0;i<sizeof(armycars);i++)
    {
    if(IsVehicleEmpty(armycars[i]))return SetVehicleToRespawn(armycars[i]);
    }
    for(new j = 0; j < MAX_PLAYERS; j++)
    {
    if(IsPlayerInFrakt(j,2))
    {
    format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
    SendClientMessage(j,COLOR_KOMISCH,string);
    return 1;
    }
    }
    }
    if(SpielerInfo[playerid][pFraktion] == 3)
    {
    for(new i= 0;i<sizeof(fbicars);i++)
    {
    if(IsVehicleEmpty(fbicars[i]))return SetVehicleToRespawn(fbicars[i]);
    }
    for(new j = 0; j < MAX_PLAYERS; j++)
    {
    if(IsPlayerInFrakt(j,3))
    {
    format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
    SendClientMessage(j,COLOR_KOMISCH,string);
    return 1;
    }
    }
    }
    if(SpielerInfo[playerid][pFraktion] == 4)
    {
    for(new i= 0;i<sizeof(vagoscars);i++)
    {
    if(IsVehicleEmpty(vagoscars[i]))return SetVehicleToRespawn(vagoscars[i]);
    }
    for(new j = 0; j < MAX_PLAYERS; j++)
    {
    if(IsPlayerInFrakt(j,4))
    {
    format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
    SendClientMessage(j,COLOR_KOMISCH,string);
    return 1;
    }
    }
    }
    if(SpielerInfo[playerid][pFraktion] == 5)
    {
    for(new i= 0;i<sizeof(fscars);i++)
    {
    if(IsVehicleEmpty(fscars[i]))return SetVehicleToRespawn(fscars[i]);
    }
    for(new j = 0; j < MAX_PLAYERS; j++)
    {
    if(IsPlayerInFrakt(j,5))
    {
    format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
    SendClientMessage(j,COLOR_KOMISCH,string);
    return 1;
    }
    }
    }
    if(SpielerInfo[playerid][pFraktion] == 6)
    {
    for(new i= 0;i<sizeof(gscars);i++)
    {
    if(IsVehicleEmpty(gscars[i]))return SetVehicleToRespawn(gscars[i]);
    }
    for(new j = 0; j < MAX_PLAYERS; j++)
    {
    if(IsPlayerInFrakt(j,6))
    {
    format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
    SendClientMessage(j,COLOR_KOMISCH,string);
    return 1;
    }
    }
    }
    if(SpielerInfo[playerid][pFraktion] == 7)
    {
    for(new i= 0;i<sizeof(azcars);i++)
    {
    if(IsVehicleEmpty(azcars[i]))return SetVehicleToRespawn(azcars[i]);
    }
    for(new j = 0; j < MAX_PLAYERS; j++)
    {
    if(IsPlayerInFrakt(j,7))
    {
    format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
    SendClientMessage(j,COLOR_KOMISCH,string);
    return 1;
    }
    }
    }
    }
    return 1;
    }
    if (strcmp("/arespawncar", cmdtext, true, 10) == 0)
    {
    if(SpielerInfo[playerid][pAdmin] > 1)
    {
    for(new i= 0;i<sizeof(armycars);i++)
    {
    if(IsVehicleEmpty(armycars[i]))return SetVehicleToRespawn(armycars[i]);
    }
    for(new i= 0;i<sizeof(fbicars);i++)
    {
    if(IsVehicleEmpty(fbicars[i]))return SetVehicleToRespawn(fbicars[i]);
    }
    for(new i= 0;i<sizeof(vagoscars);i++)
    {
    if(IsVehicleEmpty(vagoscars[i]))return SetVehicleToRespawn(vagoscars[i]);
    }
    for(new i= 0;i<sizeof(fscars);i++)
    {
    if(IsVehicleEmpty(fscars[i]))return SetVehicleToRespawn(fscars[i]);
    }
    for(new i= 0;i<sizeof(gscars);i++)
    {
    if(IsVehicleEmpty(gscars[i]))return SetVehicleToRespawn(gscars[i]);
    }
    for(new i= 0;i<sizeof(azcars);i++)
    {
    if(IsVehicleEmpty(azcars[i]))return SetVehicleToRespawn(azcars[i]);
    }
    SendClientMessageToAll(COLOR_GRÜN,"==============================================");
    SendClientMessageToAll(COLOR_GRÜN,"= Ein Admin respawnt alle Fraktionsfahrzeuge =");
    SendClientMessageToAll(COLOR_GRÜN,"==============================================");
    }
    return 1;
    }

    Hallo Community
    Ich habe ein Problem bei meinem /su System wenn ich ingame wem Wanteds geben will kommt der Spieler ist nicht online obwohl er online ist.
    ocmd:su(playerid,params[])
    {
    new pID, wan, Grund;
    new string[200];
    if(sscanf(params,"uis",pID,wan,Grund))return SendClientMessage(playerid,COLOR_GRAD2,"Benutze: /su [ID/PartofName] [Wanteds] [Grund]");
    if(SpielerInfo[playerid][pFraktion] == 1 || SpielerInfo[playerid][pFraktion] == 2 || SpielerInfo[playerid][pFraktion] == 3)
    {
    if(!IsPlayerConnected(pID))return SendClientMessage(playerid,COLOR_ROT,"Der angegebene Spieler ist nicht online");
    if(SpielerInfo[pID][pFraktion] == 1 || SpielerInfo[pID][pFraktion] == 2 || SpielerInfo[pID][pFraktion] == 3)return SendClientMessage(playerid,COLOR_GRAD2,"Du kanst keinen Beamten anklagen.");
    SetPlayerWantedLevel(pID, wan);
    format(string,sizeof(string),"Du hast %s %i Wanteds gegeben Grund: %s Aktuelles Wantedlevel %i",SpielerName(pID), wan, Grund, GetPlayerWantedLevel(pID));
    SendClientMessage(playerid,COLOR_GRAU,string);
    format(string,sizeof(string),"%s hat dir %i Wanteds gegeben Grund: %s",SpielerName(playerid),wan, Grund);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(SpielerInfo[playerid][pFraktion] == 1 || SpielerInfo[playerid][pFraktion] == 2 || SpielerInfo[playerid][pFraktion] == 3)
    {
    format(string,sizeof(string),"[SUCHE]%s gibt %s %i Wanted(s) Grund: %s Aktuelles Wantedlevel %s",SpielerName(playerid),SpielerName(pID),wan,GetPlayerWantedLevel(pID));
    SendClientMessage(i,COLOR_LILA,string);


    return 1;
    }
    }
    }
    return 1;
    }
    Was ha bich falsch gemacht bekomme keine Errors/Warnings

    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);
    }

    }

    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"

    Ja ist alles definiert außer das GetPlayerOutOfVehicle


    Damit will ich machen das wenn er aussteigt das er Dann sozusagen aus der Arena rausgeht.


    nur wie

    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

    Ja hab ich es zeigt bei dem Befehl auch Ingame an aber wenn ich dann /makeleader mach dann steht wieder Rang zu niedrig warum und im Mysql sehe ich auch bei Admin nichts da steht 0

    Hallo Community!


    Ich versuche seit Tagen mein Speicher/Laden System in den Griff zu bekommen, dennoch vergeblich.
    Ich habe jetzt sogar einen Befehl gemacht mit dem ich mich Serverleitung machen kann.
    Der Befehl funktioniert dennoch bekomme ich kein Adminlevel und im Mysql steht auch immer noch bei Admin 0.
    Hier mal ein paar Ausschnitte


    [tabmenu]

    [tab= Der Adminbefehl]
    if (strcmp("/testadmin", cmdtext, true, 10) == 0)
    {
    SpielerInfo[playerid][pAdmin] = 5;
    SendClientMessage(playerid,COLOR_GRAD1,"Du hast dich erfolgreich zum Serverleiter gemacht.");
    return 1;
    }
    [tab= Das Speichern/Laden System]
    stock LoadPlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    GetPlayerName(playerid, SpielerInfo[playerid][pName], MAX_PLAYER_NAME);
    SpielerInfo[playerid][pLevel] = mysql_GetInt("accounts", "Level", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pGeld] = mysql_GetInt("accounts", "Geld", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pFraktion] = mysql_GetInt("accounts", "Fraktion", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pRang] = mysql_GetInt("accounts", "Rang", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pLeader] = mysql_GetInt("accounts", "Leader", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pAdmin] = mysql_GetInt("accounts", "Admin", "Name", SpielerInfo[playerid][pName]);
    }
    return 1;
    }
    stock SavePlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 1)
    {
    GetPlayerName(playerid, SpielerInfo[playerid][pName], MAX_PLAYER_NAME);
    mysql_SetInt("accounts", "Level", SpielerInfo[playerid][pLevel], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Geld", SpielerInfo[playerid][pGeld], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Fraktion", SpielerInfo[playerid][pFraktion], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Rang", SpielerInfo[playerid][pRang], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Leader", SpielerInfo[playerid][pGeld], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Admin", SpielerInfo[playerid][pGeld], "Name", SpielerInfo[playerid][pName]);
    }
    }
    return 1;
    }[/tabmenu]


    Ich hoffe ihr könnt mir helfen.
    Danke im Voraus.


    Mit freundlichen Grüßen
    Schokodonut

    Hallo!
    Ich will grad die Sachen das die Gespeichert werden und habe das so gemacht.
    stock LoadPlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    GetPlayerName(playerid, SpielerInfo[playerid][pName], MAX_PLAYER_NAME);
    SpielerInfo[playerid][pLevel] = mysql_GetInt("accounts", "Level", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pGeld] = mysql_GetInt("accounts", "Geld", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pFraktion] = mysql_GetInt("accounts", "Fraktion", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pRang] = mysql_GetInt("accounts", "Rang", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pLeader] = mysql_GetInt("accounts", "Leader", "Name", SpielerInfo[playerid][pName]);
    SpielerInfo[playerid][pAdmin] = mysql_GetInt("accounts", "Admin", "Name", SpielerInfo[playerid][pName]);
    }
    return 1;
    }
    stock SavePlayer(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 1)
    {
    mysql_SetInt("accounts", "Level", SpielerInfo[playerid][pLevel], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Geld", SpielerInfo[playerid][pGeld], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Fraktion", SpielerInfo[playerid][pFraktion], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Rang", SpielerInfo[playerid][pRang], "Name", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Leader", SpielerInfo[playerid][pGeld], "Leader", SpielerInfo[playerid][pName]);
    mysql_SetInt("accounts", "Admin", SpielerInfo[playerid][pGeld], "Admin", SpielerInfo[playerid][pName]);
    }
    }
    return 1;
    }


    aber warum geht das nicht

    Hallo Leute war bekomm ich diesen Warning


    C:\Users\Andreas\Desktop\samp03x_svr_R1-2_win32\gamemodes\mysql.pwn(1151) : warning 219: local variable "SpielerName" shadows a variable at a preceding level
    Das ist die Zeile


    new SpielerName[MAX_PLAYER_NAME];