Beiträge von DJ Deagle

    Ich wage es zu vermuten, das dies eine selbst erstellte Schriftart ist. Merkt man eigentlich, das bei dem D unt dem T der Strich gleich lang ist ;)


    Wäre ned so Nice :(


    Gibt es vielleicht eine Font, die so ähnlich aussieht

    Hier:



    if(dialogid==DIALOG_CODE)
    {
    new str[4];
    new Inputtext = strval(str);
    if(response == 0)
    {
    return 1;
    }
    if(response == 1)
    {
    format(Codedatei,sizeof(Codedatei),"/Codes/%i.ini",Inputtext);
    if(dini_Exists(Codedatei))
    {
    if(Inputtext == 1698)
    {
    SetPlayerScore(playerid,7);
    GivePlayerMoney(playerid,50000);
    SetPVarInt(playerid,"Respekt",GetPVarInt(playerid,"Respekt")+30);
    SendClientMessage(playerid,Grün,"[ClosedBeta]Du hast für den Code 1698, 7 Level, 50000$ und 30 Respektpunkte erhalten!");
    dini_Remove(Codedatei);
    SetPVarInt(playerid,"CodeUsed",1);
    }
    if(Inputtext == 3865)
    {
    SetPVarInt(playerid,"Fraktion",1);
    SetPVarInt(playerid,"Leader",1);
    SetPVarInt(playerid,"frakrank",7);
    SetPVarInt(playerid,"Frakskin",283);
    SendClientMessage(playerid,Grün,"[ClosedBeta]Du hast für den Code 3865, den Leaderposten der Fraktion LSPD erhalten!");
    dini_Remove(Codedatei);
    SetPVarInt(playerid,"CodeUsed",1);
    }
    if(Inputtext == 7913)
    {
    SetPVarInt(playerid,"Fraktion",2);
    SetPVarInt(playerid,"Leader",1);
    SetPVarInt(playerid,"frakrank",7);
    SetPVarInt(playerid,"Frakskin",285);
    SendClientMessage(playerid,Grün,"[ClosedBeta]Du hast für den Code 3865, den Leaderposten der Fraktion FBI erhalten!");
    dini_Remove(Codedatei);
    SetPVarInt(playerid,"CodeUsed",1);
    }
    if(Inputtext == 4694)
    {
    GivePlayerMoney(playerid,60000);
    SetPVarInt(playerid,"FreeCarslots",1);
    SetPlayerScore(playerid,9);
    SendClientMessage(playerid,Grün,"[ClosedBeta]Du hast für den Code 4694, 60000$,1 kostenlosen Carslot, und Level 9 erhalten!");
    dini_Remove(Codedatei);
    SetPVarInt(playerid,"CodeUsed",1);
    }
    }
    else
    {
    return SendClientMessage(playerid,Rot,"[ClosedBeta]Dieser Code wurde leider schon eingelöst oder existiert nicht! Bitte versuche einen anderen Code!");
    }
    }
    }


    stock isNumeric(const string[])
    {
    new length=strlen(string);
    if (length==0) return false;
    for (new i = 0; i < length; i++) {
    if (
    (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-'
    || (string[i]=='-' && i!=0) // A '-' but not at first.
    || (string[i]=='+' && i!=0) // A '+' but not at first.
    ) return false;
    }
    if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
    return true;
    } // Der stock is von Marcos Banksystem

    Habe es jetzt so:


    Spoiler anzeigen
    new str[4];
    new Inputtext = strval(str);
    if(response == 0)
    {
    return 1;
    }
    if(response == 1)
    {
    if(isNumeric(Inputtext))//<-- Errorzeile
    {
    format(Codedatei,sizeof(Codedatei),"/Codes/%i.ini",Inputtext);
    if(dini_Exists(Codedatei))
    {
    if(Inputtext == 1111)
    {


    Mit diesem Error:
    C:\Users\_Zinne\Desktop\SAMP Server\gamemodes\GURv0.0.2.pwn(5961) : error 035: argument type mismatch (argument 1)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.



    lg
    Deagle

    HeyHoo,


    Ich habe ein Selfmade Closed-Beta-System erstellt.
    Allerdings, kommt immer die Meldung, dass der Code falsch wäre bzw nicht mehr existieren würde...
    Obwohl dieser existiert!


    PAWN-Code:

    Spoiler anzeigen
    if(dialogid==DIALOG_CODE)
    {
    new str[5];
    if(response == 0)
    {
    return 1;
    }
    if(response == 1)
    {
    if(isNumeric(inputtext))
    {
    format(Codedatei,sizeof(Codedatei),"/Codes/%i.ini",inputtext);
    if(dini_Exists(Codedatei))
    {
    if(str[4] == 1111)
    {
    SetPlayerScore(playerid,7);
    GivePlayerMoney(playerid,50000);
    SetPVarInt(playerid,"Respekt",GetPVarInt(playerid,"Respekt")+30);
    SendClientMessage(playerid,Grün,"[ClosedBeta]Du hast für den Code 1111, 7 Level, 50000$ und 30 Respektpunkte erhalten!");
    dini_Remove(Codedatei);
    SetPVarInt(playerid,"CodeUsed",1);
    return 1;
    }
    if(str[4] == 2222)
    {
    SetPVarInt(playerid,"Fraktion",1);
    SetPVarInt(playerid,"Leader",1);
    SetPVarInt(playerid,"frakrank",7);
    SetPVarInt(playerid,"Frakskin",283);
    SendClientMessage(playerid,Grün,"[ClosedBeta]Du hast für den Code 2222, den Leaderposten der Fraktion LSPD erhalten!");
    dini_Remove(Codedatei);
    SetPVarInt(playerid,"CodeUsed",1);
    return 1;
    }
    if(str[4] == 3333)
    {
    SetPVarInt(playerid,"Fraktion",2);
    SetPVarInt(playerid,"Leader",1);
    SetPVarInt(playerid,"frakrank",7);
    SetPVarInt(playerid,"Frakskin",285);
    SendClientMessage(playerid,Grün,"[ClosedBeta]Du hast für den Code 3333, den Leaderposten der Fraktion FBI erhalten!");
    dini_Remove(Codedatei);
    SetPVarInt(playerid,"CodeUsed",1);
    return 1;
    }
    if(str[4] == 4444)
    {
    GivePlayerMoney(playerid,60000);
    SetPVarInt(playerid,"FreeCarslots",1);
    SetPlayerScore(playerid,9);
    SendClientMessage(playerid,Grün,"[ClosedBeta]Du hast für den Code 4444, 60000$,1 kostenlosen Carslot, und Level 9 erhalten!");
    dini_Remove(Codedatei);
    SetPVarInt(playerid,"CodeUsed",1);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,Rot,"[ClosedBeta]Dieser Code wurde leider schon eingelöst oder existiert nicht! Bitte versuche einen anderen Code!");//Das zeigt er an immer -.-*
    }
    }
    }
    }

    Der Dialog wird direkt durch einen Befehl aufgerufen, daher brauche ich den Befehl nicht posten.


    Bitte um Hilfe!


    lg
    DJ Deagle

    HeyHoo,


    habe folgendes Problem:
    Wenn ich InGame /f hhdjdas eintippe: erscheint das:


    Hier der Code:

    Spoiler anzeigen

    ocmd:f(playerid,params[])
    {
    new result[128];
    if(sscanf(params,"s",result))return SendClientMessage(playerid,Grau, "Benutze:/f(raktion) [Text]");
    {
    new resultstring[129];
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, sizeof(Name));
    new member = GetPVarInt(playerid,"Fraktion");
    new leader = GetPVarInt(playerid,"Leader");
    if(GetPVarInt(playerid,"Fraktion")!=0)
    {
    if(member==1)
    {
    if(GetPVarInt(playerid,"frakrank") == 6) { format(resultstring, sizeof(resultstring), "Lieutnant %s: %s", Name, result); }
    else if(GetPVarInt(playerid,"frakrank") == 5) { format(resultstring, sizeof(resultstring), "Oberkommissar %s: %s", Name, result); }
    else if(GetPVarInt(playerid,"frakrank") == 4) { format(resultstring, sizeof(resultstring), "Kommissar %s: %s", Name, result); }
    else if(GetPVarInt(playerid,"frakrank") == 3) { format(resultstring, sizeof(resultstring), "Bewährungshelfer %s: %s", Name, result); }
    else if(GetPVarInt(playerid,"frakrank") == 2) { format(resultstring, sizeof(resultstring), "Officer %s: %s", Name, result); }
    else if(GetPVarInt(playerid,"frakrank") == 1) { format(resultstring, sizeof(resultstring), "Cadet %s: %s", Name, result); }
    }
    else if(leader==1)
    {
    format(resultstring, sizeof(resultstring), "Captain %s: %s", Name, result);
    }
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(GetPVarInt(playerid,"Fraktion") == GetPVarInt(playerid,"Fraktion") || GetPVarInt(playerid,"Leader") == GetPVarInt(playerid,"Leader"))
    {
    SendClientMessage(i, ChatGreen, resultstring);
    }
    }
    }
    }
    return 1;
    }


    Keine Errors, bitte um Hilfe!


    lg
    DJ Deagle

    HeyHoo,


    Habe mir einmal folgendes Tutorial eingebaut: http://forum.sa-mp.de/san-andr…stellen-eines-tutorials-4?


    Leider, spuckt es nun diese Errors aus:

    Spoiler anzeigen
    C:\Users\_Zinne\Desktop\SAMP Server\gamemodes\GURv0.0.2.pwn(1558) : error 001: expected token: "-identifier-", but found "-integer value-"
    C:\Users\_Zinne\Desktop\SAMP Server\gamemodes\GURv0.0.2.pwn(1560) : error 035: argument type mismatch (argument 1)
    C:\Users\_Zinne\Desktop\SAMP Server\gamemodes\GURv0.0.2.pwn(1560) : error 020: invalid symbol name ""
    C:\Users\_Zinne\Desktop\SAMP Server\gamemodes\GURv0.0.2.pwn(1560) : error 029: invalid expression, assumed zero
    C:\Users\_Zinne\Desktop\SAMP Server\gamemodes\GURv0.0.2.pwn(1560) : fatal error 107: too many error messages on one line

    Spoiler anzeigen
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Spoiler anzeigen
    5 Errors.


    Zeilen:

    Spoiler anzeigen
    new msg[128];
    format(warn,sizeof(warn),"Admin: %s gibt dem Spieler %s Adminrechte, Level: 1!",PlayerName(playerid),PlayerName(pID));
    format(msg,sizeof(msg),"Admin %s gibt dir Adminrechte, Level: 1",PlayerName(playerid));


    Wie man vielleicht sehen kann, gehört das zu einem Makeadmin-Befehl, und hat garnichts mit dem Tutorial zutun...


    Bitte um Hilfe!


    lg
    DJ Deagle

    HeyHoo,


    Ich habe folgendes System gebastelt:

    Spoiler anzeigen

    //Color
    #define admwarn2 0xFF9F00FF
    #define adminticket 0xC30000FF
    #define admwarn 0xFFB500FF
    #define dr 0xAF0000FF

    Spoiler anzeigen
    //Arrays
    new SupDuty[MAX_PLAYERS];
    new TicketGeschrieben[MAX_PLAYERS];
    new InSupport[MAX_PLAYERS];
    new InSupportt[MAX_PLAYERS];
    new Supporter[MAX_PLAYERS];
    new DeinSupport[MAX_PLAYERS];

    Spoiler anzeigen
    //OnPlayerText
    public OnPlayerText(playerid, text[])
    {
    new string[128];
    if(realchat)
    {
    if(GetPVarInt(playerid,"Mute") == 0)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s sagt: %s", sendername, text);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    return 0;
    }
    else if(GetPVarInt(playerid,"Mute") != 0)
    {
    SendClientMessage(playerid,Rot,"Du wurdest Gemutet!");
    return 0;
    }
    if(InSupport[playerid] != 0)
    {
    new adminlevel[56];
    if(GetPVarInt(playerid,"Adminlevel")==1)format(adminlevel,sizeof(adminlevel),"Supporter");
    else if(GetPVarInt(playerid,"Adminlevel")==3)format(adminlevel,sizeof(adminlevel),"Moderator");
    else if(GetPVarInt(playerid,"Adminlevel")==1335)format(adminlevel,sizeof(adminlevel),"Admin");
    else if(GetPVarInt(playerid,"Adminlevel")==1337)format(adminlevel,sizeof(adminlevel),"Lead-Admin");
    else if(GetPVarInt(playerid,"Adminlevel")==1338)format(adminlevel,sizeof(adminlevel),"Serverinhaber");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s(%s) sagt: %s", sendername, adminlevel, text);
    new Fragesteller = DeinSupport[playerid];
    SendClientMessage(playerid, dr, string);
    SendClientMessage(Fragesteller, dr, string);
    return 1;
    }
    else if(InSupportt[playerid] != 0)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s sagt: %s", sendername, text);
    new Sup = DeinSupport[playerid];
    SendClientMessage(playerid, dr, string);
    SendClientMessage(Sup, dr, string);
    return 1;
    }
    }
    return 1;
    }

    Spoiler anzeigen
    //Befehle
    ocmd:supportduty(playerid,params[])
    {
    if(isPlayerAnAdmin(playerid,1))
    {
    if(SupDuty[playerid] == 0)
    {
    new string[256];
    SupDuty[playerid] = 1;
    format(string,sizeof(string),"Meldung: %s hat sich als Supporter angemeldet! Du kannst ihn mit /support erreichen.",PlayerName(playerid));
    SendClientMessageToAll(admwarn2,string);
    return 1;
    }
    else if(SupDuty[playerid] == 1)
    {
    new string[256];
    SupDuty[playerid] = 0;
    format(string,sizeof(string),"Meldung: %s hat sich als Supporter abgemeldet!",PlayerName(playerid));
    SendClientMessageToAll(admwarn2,string);
    return 1;
    }
    }
    return 1;
    }

    Spoiler anzeigen
    ocmd:support(playerid,params[])
    {
    new Text[128];
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,Grau,"Benutze: /support [Text]");
    {
    for(new i=0; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    if(SupDuty[i] == 1)
    {
    new string[256];
    format(string,sizeof(string),"[SUPPORT] %s(ID: %d) hat folgendes Supportticket eingereicht: %s !",PlayerName(playerid),playerid,Text);
    SendClientMessage(i,dr,string);
    TicketGeschrieben[playerid] = 1;
    new Support[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Support,sizeof(Support),"/Supports/Support_%s.ini",name);
    dini_Create(Support);
    dini_Set(Support,"Name",name);
    dini_Set(Support,"Text",Text);
    SendClientMessage(playerid,Orange,"Du hast dein Supportticket erfolgreich an die Admins übergeben!");
    return 1;
    }
    else if(SupDuty[i] == 0)
    {
    SendClientMessage(playerid,Rot,"Es sind keine Supporter anwesend!");
    return 1;
    }
    }
    }
    }
    return 1;
    }

    Spoiler anzeigen
    ocmd:ac(playerid,params[])
    {
    new pID;
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,Grau,"Benutze: /ac(ceptsupport) [Spieler-ID]");
    {
    if(isPlayerAnAdmin(playerid,1))
    {
    if(TicketGeschrieben[pID] == 1)
    {
    new adminlevel[56];
    if(GetPVarInt(playerid,"Adminlevel")==1)format(adminlevel,sizeof(adminlevel),"Supporter");
    else if(GetPVarInt(playerid,"Adminlevel")==3)format(adminlevel,sizeof(adminlevel),"Moderator");
    else if(GetPVarInt(playerid,"Adminlevel")==1335)format(adminlevel,sizeof(adminlevel),"Admin");
    else if(GetPVarInt(playerid,"Adminlevel")==1337)format(adminlevel,sizeof(adminlevel),"Lead-Admin");
    else if(GetPVarInt(playerid,"Adminlevel")==1338)format(adminlevel,sizeof(adminlevel),"Serverinhaber");
    new suptext[128];
    format(suptext,sizeof(suptext),"[GUR]%s %s hat dein Supportticket angenommen. Du kannst nun über die Taste T mit ihm schreiben",adminlevel,PlayerName(playerid));
    new string[128];
    format(string,sizeof(string),"%s %s hat den Support von %s(ID: %d) angenommen!",adminlevel,PlayerName(playerid),PlayerName(pID),pID);
    InSupport[playerid] = 1;
    Supporter[pID] = playerid;
    InSupportt[pID] = 1;
    SetPlayerColor(playerid,Schwarz);
    SendClientMessage(pID,dr,suptext);
    DeinSupport[playerid] = pID;
    DeinSupport[pID] = playerid;
    new Support[64];
    format(Support,sizeof(Support),"/Supports/Support_%s.ini",PlayerName(pID));
    dini_Remove(Support);
    for(new i=0; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    if(isPlayerAnAdmin(i,GetPVarInt(playerid,"Adminlevel")))
    {
    SendClientMessage(i,admwarn2,string);
    }
    }
    }
    return 1;
    }
    else if(TicketGeschrieben[pID] == 0)
    {
    SendClientMessage(playerid,Rot,"Dieser Spieler hat kein Supportticket eingereicht!");
    return 1;
    }
    }
    }
    return 1;
    }

    Spoiler anzeigen
    ocmd:cs(playerid,params[])
    {
    if(isPlayerAnAdmin(playerid,1))
    {
    if(InSupport[playerid] == 1)
    {
    new Person = DeinSupport[playerid];
    InSupportt[Person] = 0;
    InSupport[playerid] = 0;
    SendClientMessage(Person,Grau,"Der Supporter hat den Supportchat geschlossen");
    SendClientMessage(playerid,Grau,"Du hast den Supportchat geschlossen");
    return 1;
    }
    }
    return 1;
    }

    Spoiler anzeigen
    ocmd:de(playerid,params[])
    {
    if(isPlayerAnAdmin(playerid,1))
    {
    new pID;
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,Grau,"Benutze: /de(letesupport) [Spieler-ID]");
    {
    new adminlevel[56];
    if(GetPVarInt(playerid,"Adminlevel")==1)format(adminlevel,sizeof(adminlevel),"Supporter");
    else if(GetPVarInt(playerid,"Adminlevel")==3)format(adminlevel,sizeof(adminlevel),"Moderator");
    else if(GetPVarInt(playerid,"Adminlevel")==1335)format(adminlevel,sizeof(adminlevel),"Admin");
    else if(GetPVarInt(playerid,"Adminlevel")==1337)format(adminlevel,sizeof(adminlevel),"Lead-Admin");
    else if(GetPVarInt(playerid,"Adminlevel")==1338)format(adminlevel,sizeof(adminlevel),"Serverinhaber");
    new userstring[128];
    format(userstring,sizeof(userstring),"%s %s hat dein Supportticket gelöscht!",adminlevel,PlayerName(playerid));
    new string[128];
    format(string,sizeof(string),"%s %s hat das Supportticket von %s gelöscht!",adminlevel,PlayerName(playerid),PlayerName(pID));
    new Support[64];
    format(Support,sizeof(Support),"/Supports/Support_%s.ini",PlayerName(pID));
    dini_Remove(Support);
    for(new i=0; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    if(isPlayerAnAdmin(i,GetPVarInt(playerid,"Adminlevel")))
    {
    SendClientMessage(i,admwarn2,string);
    }
    }
    }
    SendClientMessage(pID,admwarn2,userstring);
    TicketGeschrieben[pID] = 0;
    return 1;
    }
    }
    return 1;
    }


    doch Leider, funktioniert es nicht.


    Was ist Falsch?


    lg
    Deagle