ich bitte euch mit mir diese paar fehler zu lösen von admin sys

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
  • J:\spiele\gta-sa\gamemodes\blanko.pwn(790) : error 017: undefined symbol "tmp"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(791) : error 017: undefined symbol "tmp"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(802) : error 017: undefined symbol "tmp"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(804) : error 017: undefined symbol "playername"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(804) : error 017: undefined symbol "playername"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(804) : error 029: invalid expression, assumed zero
    J:\spiele\gta-sa\gamemodes\blanko.pwn(804) : fatal error 107: too many error messages on one line


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



    7 Errors.



    tmp = strtok// 790(cmdtext, idx);
    if(!strlen(tmp))//791


    strmid(PlayerInfo[playerid][pPassword], tmp, 0, strlen(cmdtext), 255);//802


    GetPlayerName(playerid, playername, sizeof(playername));//804

  • Hey danke für deine antwort aber da bekomme ich noch mehr fehler^^


    J:\spiele\gta-sa\gamemodes\blanko.pwn(336) : error 017: undefined symbol "MAX_PLAYERS_NAME"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(336) : error 009: invalid array size (negative, zero or out of bounds)
    J:\spiele\gta-sa\gamemodes\blanko.pwn(338) : error 021: symbol already defined: "GetPlayerName"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(479) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(489) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(499) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(688) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(766) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(794) : error 006: must be assigned to an array
    J:\spiele\gta-sa\gamemodes\blanko.pwn(795) : error 035: argument type mismatch (argument 1)
    J:\spiele\gta-sa\gamemodes\blanko.pwn(806) : error 035: argument type mismatch (argument 2)
    J:\spiele\gta-sa\gamemodes\blanko.pwn(808) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(884) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1205) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1296) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1323) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1350) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1382) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1411) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1438) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1465) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1497) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1519) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1542) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1559) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1576) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1864) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1866) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1868) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1871) : error 054: unmatched closing brace ("}")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1872) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1877) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1879) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1904) : warning 235: public function lacks forward declaration (symbol "Pinfo")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1943) : warning 235: public function lacks forward declaration (symbol "Sinfo")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1963) : warning 235: public function lacks forward declaration (symbol "Unjail")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1976) : warning 235: public function lacks forward declaration (symbol "Unmute")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1987) : warning 235: public function lacks forward declaration (symbol "Unfreeze")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(2035) : warning 235: public function lacks forward declaration (symbol "PingKick")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(2948) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(794) : warning 204: symbol is assigned a value that is never used: "tmp"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    14 Errors.


  • J:\spiele\gta-sa\gamemodes\blanko.pwn(336) : error 017: undefined symbol "MAX_PLAYERS_NAME"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(336) : error 009: invalid array size (negative, zero or out of bounds)
    J:\spiele\gta-sa\gamemodes\blanko.pwn(338) : error 021: symbol already defined: "GetPlayerName"
    J:\spiele\gta-sa\gamemodes\blanko.pwn(479) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(489) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(499) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(688) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(766) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(794) : error 006: must be assigned to an array
    J:\spiele\gta-sa\gamemodes\blanko.pwn(795) : error 035: argument type mismatch (argument 1)
    J:\spiele\gta-sa\gamemodes\blanko.pwn(806) : error 035: argument type mismatch (argument 2)
    J:\spiele\gta-sa\gamemodes\blanko.pwn(808) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(884) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1205) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1296) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1323) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1350) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1382) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1411) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1438) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1465) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1497) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1519) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1542) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1559) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1576) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1864) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1866) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1868) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1871) : error 054: unmatched closing brace ("}")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1872) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1877) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1879) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1904) : warning 235: public function lacks forward declaration (symbol "Pinfo")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1943) : warning 235: public function lacks forward declaration (symbol "Sinfo")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1963) : warning 235: public function lacks forward declaration (symbol "Unjail")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1976) : warning 235: public function lacks forward declaration (symbol "Unmute")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1987) : warning 235: public function lacks forward declaration (symbol "Unfreeze")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(2035) : warning 235: public function lacks forward declaration (symbol "PingKick")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(2948) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(794) : warning 204: symbol is assigned a value that is never used: "tmp"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    14 Errors.


    mhm, also wenn das 14 Errors sind brauch ich ne Brille ^^

  • J:\spiele\gta-sa\gamemodes\blanko.pwn(481) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(491) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(501) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(690) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(768) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(796) : error 006: must be assigned to an array
    J:\spiele\gta-sa\gamemodes\blanko.pwn(797) : error 035: argument type mismatch (argument 1)
    J:\spiele\gta-sa\gamemodes\blanko.pwn(808) : error 035: argument type mismatch (argument 2)
    J:\spiele\gta-sa\gamemodes\blanko.pwn(886) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1207) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1298) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1325) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1352) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1384) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1413) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1440) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1467) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1499) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1521) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1544) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1561) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1578) : warning 219: local variable "tmp" shadows a variable at a preceding level
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1866) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1868) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1870) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1874) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1880) : error 054: unmatched closing brace ("}")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1881) : error 010: invalid function or declaration
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1906) : warning 235: public function lacks forward declaration (symbol "Pinfo")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1945) : warning 235: public function lacks forward declaration (symbol "Sinfo")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1965) : warning 235: public function lacks forward declaration (symbol "Unjail")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1978) : warning 235: public function lacks forward declaration (symbol "Unmute")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(1989) : warning 235: public function lacks forward declaration (symbol "Unfreeze")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(2037) : warning 235: public function lacks forward declaration (symbol "PingKick")
    J:\spiele\gta-sa\gamemodes\blanko.pwn(796) : warning 204: symbol is assigned a value that is never used: "tmp"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    9 Errors.



    RL(string[])
    {
    new tmp[256];
    format(tmp, sizeof(tmp), "%s \r\n",string);
    new File:hFile;
    hFile = fopen("RAS/Reports.txt", io_append);
    fwrite(hFile, tmp);
    fclose(hFile);
    }
    //adminchat
    ACL(string[])
    {
    new tmp[256];
    format(tmp, sizeof(tmp), "%s \r\n",string);
    new File:hFile;
    hFile = fopen("RAS/Adminchat.txt", io_append);
    fwrite(hFile, tmp);
    fclose(hFile);
    }[pwn]
    new tmp[256];
    format(tmp, sizeof(tmp), "%s \r\n",string);
    new File:hFile;
    hFile = fopen("RAS/Bans&kicks.txt", io_append);
    fwrite(hFile, tmp);
    fclose(hFile);
    }[/pwn]
    new pid, tmp[256], tmpp[256];
    tmp = strtok(cmdtext, idx);
    tmpp = strtok(cmdtext, idx);
    if (!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GREEN, "USAGE: /rfreeze [playerid] [seconds]");
    return 1;
    new pid, tmp[256], tmpp[256];
    tmp = strtok(cmdtext, idx);
    tmpp = strtok(cmdtext, idx);
    if (!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GREEN, "USAGE: /rmute [playerid] [seconds]");
    return 1;
    }


    if (strcmp(cmd, "/register", true)==0)
    {
    new string[265];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GREY, "Benutze: /register [password]");
    return 1;
    }
    strmid(PlayerInfo[playerid][pPassword], tmp, 0, strlen(cmdtext), 255);
    Encrypt(PlayerInfo[playerid][pPassword]);
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "%s.cer", playername);
    new File: file = fopen(string, io_read);
    if (file)
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Name ist bereits registriert");
    fclose(file);
    return 1;
    }
    new pid, tmp[256], tmpp[256];
    tmp = strtok(cmdtext, idx);
    tmpp = strtok(cmdtext, idx);
    if (!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GREEN, "USAGE: /rjail [playerid] [seconds]");
    return 1;
    }[pwn]
    if (strcmp(cmd, "/stats", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (gPlayerLogged[playerid] != 0)
    {
    ShowStats(playerid,playerid);


    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht eingeloggt !");
    }
    }


    }
    return 0;
    }


    public Encrypt(string[])
    {
    for(new x=0; x < strlen(string); x++)
    {
    string[x] += (3^x) * (x % 15);
    if(string[x] > (0xff))
    {
    string[x] -= 64;
    }
    }
    return 1;
    }[/pwn]

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen