Script 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
  • habe eine menge Errors in meinem Script ich denke mal KlammerFehler ich kann sie aber nicht finden


    script: http://pastebin.com/8CgkQxaY


    script ohne Errors also vorher: http://pastebin.com/tizBksKA


    Errors:



    filterscripts\jadmin3.pwn(334) : error 017: undefined symbol "checkfolder"
    filterscripts\jadmin3.pwn(342) : error 017: undefined symbol "checkfolderEx"
    filterscripts\jadmin3.pwn(351) : error 017: undefined symbol "loadb"
    filterscripts\jadmin3.pwn(353) : error 017: undefined symbol "j_CountCmds"
    filterscripts\jadmin3.pwn(355) : error 017: undefined symbol "Config"
    filterscripts\jadmin3.pwn(394) : error 017: undefined symbol "closedb"
    \Mein Server\filterscripts\jadmin3.pwn(447) : warning 209: function "Strafe" should return a value
    \Mein Server\filterscripts\jadmin3.pwn(518) : error 017: undefined symbol "pName"
    \Mein Server\filterscripts\jadmin3.pwn(520) : error 017: undefined symbol "pName"
    Mein Server\filterscripts\jadmin3.pwn(524) : error 017: undefined symbol "SaveLog"
    \Mein Server\filterscripts\jadmin3.pwn(570) : error 017: undefined symbol "ShowBan"
    \Mein Server\filterscripts\jadmin3.pwn(572) : error 017: undefined symbol "KickDelay"
    \Mein Server\filterscripts\jadmin3.pwn(593) : error 017: undefined symbol "DB_Escape"
    \Mein Server\filterscripts\jadmin3.pwn(609) : error 017: undefined symbol "LoginPlayer"
    \Mein Server\filterscripts\jadmin3.pwn(648) : error 017: undefined symbol "AdvanceSpectate"
    \Mein Server\filterscripts\jadmin3.pwn(650) : error 017: undefined symbol "EraseVeh"
    \Mein Server\filterscripts\jadmin3.pwn(657) : error 017: undefined symbol "SaveData"
    \Mein Server\filterscripts\jadmin3.pwn(691) : error 017: undefined symbol "AdvanceSpectate"
    \Mein Server\filterscripts\jadmin3.pwn(765) : error 017: undefined symbol "TimeStamp"
    \Mein Server\filterscripts\jadmin3.pwn(768) : error 017: undefined symbol "TimeStamp"
    Mein Server\filterscripts\jadmin3.pwn(771) : error 017: undefined symbol "TimeStamp"



    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    Meine 2. Frage habe bei dem hier auch error
    http://pastebin.com/uQfaLcRS


    error:


    Alkatraz Tore und Cmds.pwn(87) : error 054: unmatched closing brace ("}")
    Alkatraz Tore und Cmds.pwn(87 -- 12) : error 010: invalid function or declaration
    Alkatraz Tore und Cmds.pwn(87 -- 15) : error 010: invalid function or declaration
    Alkatraz Tore und Cmds.pwn(15) : error 010: invalid function or declaration
    Alkatraz Tore und Cmds.pwn(15 -- 17) : error 010: invalid function or declaration
    Alkatraz Tore und Cmds.pwn(15 -- 17) : fatal error 107: too many error messages on one line

    2 Mal editiert, zuletzt von lolbob ()

  • In deinem OnDialogResponse fehlen unten Klammern.
    Schreibe das ganze public so:

    Spoiler anzeigen
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    switch( dialogid )
    {
    #if RconProtect == true
    case DIALOG_RCON:
    {
    new
    string[130]
    ;
    if(!response)
    {
    format(string, sizeof(string), "** Player %s(ID:%d) has been automatically kicked by the Server (Attempting to logged in RCON)", pName(playerid), playerid);
    SendClientMessageToAll(COLOR_GREY, string);
    print(string);
    #if LOG == true
    SaveLog("rcon.txt", string);
    #endif
    return KickDelay(playerid);
    }
    if(response)
    {
    if(!strcmp(RconPass, inputtext) && !(!strlen(inputtext)))
    {
    format(string, sizeof(string), "** Player %s(ID:%d) has accessed the RCON Protection successfully!", pName(playerid), playerid);
    SendAdmin(COLOR_GREY, string);
    print(string);
    #if LOG == true
    SaveLog("rcon.txt", string);
    #endif

    _RCON[playerid] = true;

    GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~g~Authorized ~w~Access!~n~~y~Welcome Administrator!", 3000, 3);
    }
    else
    {
    if(_RCONwarn[playerid] == MAX_RCON_WARNINGS+1)
    {
    format(string, sizeof(string), "** Player %s(ID:%d) has been kicked by the Server (Attempting to logged in RCON)", pName(playerid), playerid);
    SendClientMessageToAll(COLOR_GREY, string);
    print(string);
    #if LOG == true
    SaveLog("kicklog.txt", string);
    #endif
    KickDelay(playerid);
    return 1;
    }
    _RCONwarn[playerid] ++;
    format(string, sizeof(string), "You have been warned for incorrect 2nd RCON Password (Warnings: %i/%i)", _RCONwarn[playerid], MAX_RCON_WARNINGS);
    SendClientMessage(playerid, COLOR_GREY, string);
    SD(playerid, DIALOG_RCON, DP, ""green"2nd RCON Password", ""grey"The RCON password is protected by JakAdmin3\nPlease type the 2nd RCON Password to access the RCON.", "Access", "Kick");
    }
    }
    }


    case DIALOG_REGISTER:
    {
    new
    string[128],
    hashpass[129]
    ;
    if(response)
    {
    if(!IsValidPassword(inputtext))
    {
    SD(playerid, DIALOG_REGISTER, DP, ""lightblue"JakAdmin3 - Register", ""grey"Welcome to the Server!\nYour account doesn't exist on our database, Please insert your password below.\n\nTIPS: Make the password long so no one can hack it.\nERROR: Invalid Password Symbols.", "Register", "Quit");
    return 0;
    }
    if (strlen(inputtext) < 4 || strlen(inputtext) > 20)
    {
    SD(playerid, DIALOG_REGISTER, DP, ""lightblue"JakAdmin3 - Register", ""grey"Welcome to the Server!\nYour account doesn't exist on our database, Please insert your password below.\n\nTIPS: Make the password long so no one can hack it.\nERROR: Password length shouldn't go below 4 and shouldn't go higher 20.", "Register", "Quit");
    return 0;
    }

    WP_Hash(hashpass, 129, inputtext);

    SetPlayerScore(playerid, STARTING_SCORE);
    GivePlayerMoney(playerid, STARTING_CASH);

    //Time = Hours, Time2 = Minutes, Time3 = Seconds
    new time, time2, time3;
    gettime(time, time2, time3);
    new date, date2, date3;
    //Date = Month, Date2 = Day, Date3 = Year
    getdate(date3, date, date2);

    format(User[playerid][accountDate], 150, "%02d/%02d/%d %02d:%02d:%02d", date, date2, date3, time, time2, time3);


    new
    query[750+1000]
    ;
    format(query, sizeof(query),
    "INSERT INTO `users` (`username`, `IP`, `joindate`, `passwort`, `admin`, `kills`, `deaths`, `score`, `money`, `warn`, `mute`, `Prison`, `Prisonsec`, `hours`, `minutes`, `seconds`) VALUES ('%s','%s','%s','%s',0,0,0,%d,%d,0,0,0,0,0,0,0,0,0,0,'%s','%s')",\
    DB_Escape(pName(playerid)),
    DB_Escape(User[playerid][accountIP]),
    DB_Escape(User[playerid][accountDate]),
    DB_Escape(hashpass),
    User[playerid][accountLevel],
    User[playerid][accountGeld],
    );
    db_query(Database, query);

    Spoiler anzeigen
    User[playerid][accountLogged] = true;

    Spoiler anzeigen
    PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);

    Spoiler anzeigen
    new
    count,
    DBResult: result
    ;
    result = db_query(Database, "SELECT * FROM `users`");
    count = db_num_rows(result);
    db_free_result(result);

    User[playerid][accountID] = count;
    SendClientMessage(playerid, -1, "You have successfully registered from the database.");
    format(string, sizeof(string), "You are now handling accountID %i from the JakAdmin3 system.", count);
    SendClientMessage(playerid, COLOR_ORANGE, string);
    SendClientMessage(playerid, COLOR_YELLOW, "Proceeding to the Security Question.");

    SD(playerid, DIALOG_QUESTION, DI, ""lightblue"Security Question", ""grey"Welcome to JakAdmin3's security question, Where you'll setup your account's security question.\nYou can use the Security Question incase you forgot your password, you can rely on it 100 percent.\n\nPut your question below:", "Setup", "");
    }
    else
    {
    KickDelay(playerid);
    }
    }
    case DIALOG_LOGIN:
    {
    new
    hashp[129],
    string[900]
    ;
    if(response)
    {
    WP_Hash(hashp, 129, inputtext);
    if(!strcmp(hashp, User[playerid][accountPasswort], false))
    {
    LoginPlayer(playerid);
    }
    else
    {
    User[playerid][WarnLog]++;

    if(User[playerid][WarnLog] == 3)
    {
    SD(playerid, DIALOG_BEGIN, DM, ""lightblue"Kicked", ""grey"Du wurdest vom Server gekickt, du hast zu oft das falsche passwort eingegeben!\nVersuche es nochmal, Reconnect (Verlasse den Server und versuche es nochmal.)", "Verlassen", "");
    KickDelay(playerid);
    return 0;
    }

    format(string, sizeof(string), "Invalid password! - %d out of 3 Warning Log Tires.", User[playerid][WarnLog]);
    SendClientMessage(playerid, COLOR_RED, string);

    format(string, sizeof(string), ""grey"Welcome back to the server!\nYour account exists on our database, Please insert your account's password below.\n\nTIPS: If you do not own the account, Please /q and find another username.\nERROR: Wrong password (%d/3 Warnings Log)", User[playerid][WarnLog]);

    SD(playerid, DIALOG_LOGIN, DP, ""lightblue"JakAdmin3 - Login", string, "Login", "Forget");
    }
    }
    }
    }
    return 0;
    }


    Zur zweiten Frage:
    Der Code gibt keinen Sinn, da gibt es auch nichts zu reparieren, weil alles völlig ohne Zusammenhang zusammengewürfelt ist. Was willst du denn da machen?

  • hier habe gemacht was du gesagt hast Jeffry


    nun kommt das:
    Error:


    Mein Server\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\pawno\include\YSI\y_iterate.inc(1015) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\pawno\include\YSI\y_iterate.inc(1082) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\pawno\include\YSI\y_iterate.inc(1116) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\pawno\include\YSI\y_iterate.inc(1139) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\pawno\include\YSI\y_iterate.inc(1193) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\pawno\include\YSI\y_scripting.inc(449) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(324) : warning 219: local variable "result" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(414) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(447) : warning 209: function "Strafe" should return a value
    \Mein Server\filterscripts\jadmin3.pwn(515) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(593) : error 048: array dimensions do not match
    \Mein Server\filterscripts\jadmin3.pwn(676) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(721) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(805) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(866) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(929) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(983) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1009) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1065) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1088) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1110) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1144) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1162) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1177) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1200) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1230) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1253) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1255) : warning 219: local variable "time" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1285) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1309) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1322) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1360) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1411) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1421) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1421) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1442) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1442) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1467) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1493) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1515) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1539) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1564) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1613) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1644) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1684) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1709) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1739) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1765) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1791) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1814) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1842) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1862) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1883) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1903) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1925) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1946) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(1976) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2002) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2040) : warning 219: local variable "string" shadows a variable at a preceding level
    Mein Server\filterscripts\jadmin3.pwn(2075) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2100) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2121) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2179) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2205) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2238) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2296) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2317) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2341) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2368) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2392) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2421) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2446) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2487) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2526) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2548) : error 048: array dimensions do not match
    \Mein Server\filterscripts\jadmin3.pwn(2590) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2636) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2678) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2707) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2735) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2736) : warning 219: local variable "time" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2773) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2799) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2819) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2819) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2843) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2869) : warning 219: local variable "string" shadows a variable at a preceding level
    Mein Server\filterscripts\jadmin3.pwn(2896) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2915) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2942) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(2969) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3001) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3027) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3048) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3067) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3087) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3111) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3135) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3158) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3195) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3210) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3240) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3282) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3321) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3347) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3363) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3409) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3409) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3450) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3467) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3536) : warning 219: local variable "time" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3536) : warning 219: local variable "time2" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3536) : warning 219: local variable "time3" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3538) : warning 219: local variable "date" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3538) : warning 219: local variable "date2" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3538) : warning 219: local variable "date3" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3545) : warning 219: local variable "query" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3547 -- 3549) : error 048: array dimensions do not match
    \Mein Server\filterscripts\jadmin3.pwn(3563) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3564) : warning 219: local variable "result" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3593) : warning 219: local variable "hashp" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3594) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3634) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3653) : error 048: array dimensions do not match
    \Mein Server\filterscripts\jadmin3.pwn(3793) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3845) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3846) : warning 219: local variable "hashpass" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3867) : warning 219: local variable "time" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3867) : warning 219: local variable "time2" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3867) : warning 219: local variable "time3" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3869) : warning 219: local variable "date" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3869) : warning 219: local variable "date2" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3869) : warning 219: local variable "date3" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3877) : warning 219: local variable "query" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3879 -- 3881) : error 048: array dimensions do not match
    \Mein Server\filterscripts\jadmin3.pwn(3879 -- 3887) : error 001: expected token: ",", but found ";"
    \Mein Server\filterscripts\jadmin3.pwn(3895) : warning 219: local variable "count" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3896) : warning 219: local variable "result" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3918) : warning 219: local variable "hashp" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3919) : warning 219: local variable "string" shadows a variable at a preceding level
    \Mein Server\filterscripts\jadmin3.pwn(3952) : error 010: invalid function or declaration
    \Mein Server\filterscripts\jadmin3.pwn(3958) : error 010: invalid function or declaration
    \Mein Server\filterscripts\jadmin3.pwn(3960) : error 010: invalid function or declaration
    \Mein Server\filterscripts\jadmin3.pwn(3963) : error 010: invalid function or declaration
    \Mein Server\filterscripts\jadmin3.pwn(3965) : error 010: invalid function or declaration
    \Mein Server\filterscripts\jadmin3.pwn(3968) : error 010: invalid function or declaration
    \Mein Server\filterscripts\jadmin3.pwn(3971) : error 021: symbol already defined: "WP_Hash"
    \Mein Server\filterscripts\jadmin3.pwn(3973) : error 021: symbol already defined: "SetPlayerScore"
    \Mein Server\filterscripts\jadmin3.pwn(3978) : error 021: symbol already defined: "gettime"
    \Mein Server\filterscripts\jadmin3.pwn(3981) : error 021: symbol already defined: "getdate"
    \Mein Server\filterscripts\jadmin3.pwn(3983) : error 021: symbol already defined: "format"
    \Mein Server\filterscripts\jadmin3.pwn(3989) : error 021: symbol already defined: "format"
    \Mein Server\filterscripts\jadmin3.pwn(3992) : error 029: invalid expression, assumed zero
    \Mein Server\filterscripts\jadmin3.pwn(3993) : error 021: symbol already defined: "DB_Escape"
    \Mein Server\filterscripts\jadmin3.pwn(3993) : error 029: invalid expression, assumed zero
    \Mein Server\filterscripts\jadmin3.pwn(3993) : error 021: symbol already defined: "DB_Escape"
    \Mein Server\filterscripts\jadmin3.pwn(3993 -- 3994) : fatal error 107: too many error messages on one line


    Kann das vlt daran liegen das ich die SpecID und SpecType zu TvID und TvType geändert habe oder das ich cmdmute, cmdmutesec rausgenommen habe oder das ich jail zu prison geändern habe (jailSec,PrisonSec) ?

  • so habe mir jetzt das script nochmal neu heruntergeladen um dieses mal keine Fehler zu machen Frag ich vorher.


    Also im Script ab Zeile: 883 geht es los da ist die Liste alle Befehle die ein Admin benutzen kann. Ich will die Befehle änder z.B das aus /spec(off)=/tv(off) wird wie mache ich das im scirpt kann mir das einer erklären.


    Und die 2te Frage wie mache ich das wenn ich davon ein Befehl rausnehmen möchte also garnicht im Filterscript haben möchte wie z.B slap


    diese 2 Frage sind mir wichtig habe schon meine Liste fertig mit den befehlen die geändert werden und die, die gelöscht werden nur weiß ich nicht wie das geht.


    hier mein script: http://pastebin.com/NUtHEryr

  • Frage 1:

    Spoiler anzeigen
    CMD:spec(playerid, params[])
    {
    LoginCheck(playerid);
    LevelCheck(playerid, 2);

    new string[150], specplayerid;

    if(sscanf(params, "u", specplayerid)) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: /spec [playerid]");
    if(specplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: Player not connected.");
    if(User[playerid][accountAdmin] < User[specplayerid][accountAdmin]) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: You cannot use this command on higher admin.");
    if(specplayerid == playerid) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: You cannot spectate yourself.");
    if(GetPlayerState(specplayerid) == PLAYER_STATE_SPECTATING && User[specplayerid][SpecID] != INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: Player is spectating someone.");
    if(GetPlayerState(specplayerid) != 1 && GetPlayerState(specplayerid) != 2 && GetPlayerState(specplayerid) != 3) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: Player not spawned.");
    GetPlayerPos(playerid, SpecPos[playerid][0], SpecPos[playerid][1], SpecPos[playerid][2]);
    GetPlayerFacingAngle(playerid, SpecPos[playerid][3]);
    SpecInt[playerid][0] = GetPlayerInterior(playerid);
    SpecInt[playerid][1] = GetPlayerVirtualWorld(playerid);
    StartSpectate(playerid, specplayerid);
    format(string, sizeof(string), "Now Spectating: %s (ID: %d)", pName(specplayerid), specplayerid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SendClientMessage(playerid, -1, "Press SHIFT for Advance Spectating and SPACE for backward spectating.");
    return 1;
    }

    CMD:specoff(playerid, params[])
    {
    LoginCheck(playerid);
    LevelCheck(playerid, 2);

    if(User[playerid][SpecType] != ADMIN_SPEC_TYPE_NONE)
    {
    StopSpectate(playerid);
    SetTimerEx("PosAfterSpec", 3000, 0, "d", playerid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "No longer spectating.");
    }
    else return SendClientMessage(playerid, COLOR_RED, "Syntax Error: You are not spectating anyone.");
    return 1;
    }

    mit dem hier ersetzen:
    Spoiler anzeigen
    CMD:tv(playerid, params[])
    {
    LoginCheck(playerid);
    LevelCheck(playerid, 2);

    new string[150], specplayerid;

    if(sscanf(params, "u", specplayerid)) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: /tv [playerid]");
    if(specplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: Player not connected.");
    if(User[playerid][accountAdmin] < User[specplayerid][accountAdmin]) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: You cannot use this command on higher admin.");
    if(specplayerid == playerid) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: You cannot spectate yourself.");
    if(GetPlayerState(specplayerid) == PLAYER_STATE_SPECTATING && User[specplayerid][SpecID] != INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: Player is spectating someone.");
    if(GetPlayerState(specplayerid) != 1 && GetPlayerState(specplayerid) != 2 && GetPlayerState(specplayerid) != 3) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: Player not spawned.");
    GetPlayerPos(playerid, SpecPos[playerid][0], SpecPos[playerid][1], SpecPos[playerid][2]);
    GetPlayerFacingAngle(playerid, SpecPos[playerid][3]);
    SpecInt[playerid][0] = GetPlayerInterior(playerid);
    SpecInt[playerid][1] = GetPlayerVirtualWorld(playerid);
    StartSpectate(playerid, specplayerid);
    format(string, sizeof(string), "Now Spectating: %s (ID: %d)", pName(specplayerid), specplayerid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SendClientMessage(playerid, -1, "Press SHIFT for Advance Spectating and SPACE for backward spectating.");
    return 1;
    }

    CMD:tvoff(playerid, params[])
    {
    LoginCheck(playerid);
    LevelCheck(playerid, 2);

    if(User[playerid][SpecType] != ADMIN_SPEC_TYPE_NONE)
    {
    StopSpectate(playerid);
    SetTimerEx("PosAfterSpec", 3000, 0, "d", playerid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "No longer spectating.");
    }
    else return SendClientMessage(playerid, COLOR_RED, "Syntax Error: You are not spectating anyone.");
    return 1;
    }

    und:
    strcat(string, "/akill /spec(off) /car /carcolor /eject /setvhealth /givecar /muted /jailed (/un)jail /show\n");
    zu:
    strcat(string, "/akill /tv(off) /car /carcolor /eject /setvhealth /givecar /muted /jailed (/un)jail /show\n");


    Frage 2:
    strcat(string, "/setmoney /setscore /setcolor /slap /cname /(un)ban /giveweapon (/un)freeze /getall /bankrupt\n");
    zu:
    strcat(string, "/setmoney /setscore /setcolor /cname /(un)ban /giveweapon (/un)freeze /getall /bankrupt\n");
    Und:
    Zeile 2645 bis 2672 löschen, also das hier:

    Spoiler anzeigen
    CMD:slap(playerid, params[])
    {
    LoginCheck(playerid);
    LevelCheck(playerid, 3);

    new
    Float:x,
    Float:y,
    Float:z,
    Float:health,
    string[128],
    id,
    reason[128]
    ;

    if(sscanf(params, "uS(N/A)[128]", id, reason)) return SendClientMessage(playerid, COLOR_RED, "<!> Syntax Error: /slap [playerid] [reason(Default: N/A)]");
    if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: Player not connected.");
    if(User[playerid][accountAdmin] < User[id][accountAdmin]) return SendClientMessage(playerid, COLOR_RED, "Syntax Error: You cannot use this command on higher admin.");
    GetPlayerPos(id, x, y, z);
    GetPlayerHealth(id, health);
    SetPlayerHealth(id, health-25);
    SetPlayerPos(id, x, y, z+5);
    PlayerPlaySound(playerid, 1190, 0.0, 0.0, 0.0);
    PlayerPlaySound(id, 1190, 0.0, 0.0, 0.0);
    format(string, sizeof(string), "** %s(%d) has been slapped by Administrator %s [Reason: %s]", pName(id), id, pName(playerid), reason);
    SendClientMessageToAll(COLOR_GREY, string);
    return 1;
    }