Beiträge von Towelie123

    Moin,
    die Error´s:
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(791) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(791) : warning 215: expression has no effect
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(791) : error 001: expected token: ";", but found "forward"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(797) : error 017: undefined symbol "cmdtext"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(798) : error 017: undefined symbol "cmdtext"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(798) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(798) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(798) : 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.


    Meine Zeilen:
    //----------------------------------[AdminChat]-----------------------------------------------
    ocmd:admin(playerid, params[]) || ocmd:a(playerid, params[])
    {
    if(IsPlayerConnected(playerid))
    {
    new string[100], sendername[MAX_PLAYER_NAME], idx;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, GELB, "NUTZE: (/a)dmin [admin chat]");
    return 1;
    }
    if(sSpieler[playerid][Adminlevel] >= 1)
    {
    format(string, sizeof(string), "*%d Admin %s[%d]: %s", sSpieler[playerid][Adminlevel], sendername, playerid, result);
    }
    else if(sSpieler[playerid][pSupporter] >= 1)
    {
    format(string, sizeof(string), "*%d Supporter %s[%d]: %s", sSpieler[playerid][pSupporter], sendername, playerid, result);
    }
    else if(sSpieler[playerid][pSupporter] == 6)
    {
    format(string, sizeof(string), "*%d Admin %s[%d]: %s", sSpieler[playerid][pSupporter], sendername, playerid, result);
    }


    else return 1;
    for(new i=0; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    if(sSpieler[i][pSupporter] >= 1 || sSpieler[i][Adminlevel] >= 1)
    {
    SendClientMessage(i,GELB,string);
    }
    }
    }
    }
    return 1;
    }

    Hey, ich habe paar error´s..


    Error´s:
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(107) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : warning 217: loose indentation
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : warning 215: expression has no effect
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 001: expected token: ";", but found ")"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : fatal error 107: too many error messages on one line


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



    5 Errors.



    Zeilen:
    = TextDrawCreate(535, 444, ""); //ZEILE: 107
    TextDrawFont( , 2); //ZEILE: 108
    TextDrawLetterSize( , 0, 0);
    TextDrawColor( , 0xFF8000FF);
    TextDrawSetOutline( , 0);
    TextDrawSetProportional( , 1);
    TextDrawSetShadow( , 1);

    Hey, ich habe paar error´s..


    Error´s:
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(107) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : warning 217: loose indentation
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : warning 215: expression has no effect
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 001: expected token: ";", but found ")"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : fatal error 107: too many error messages on one line


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



    5 Errors.



    Zeilen:
    = TextDrawCreate(535, 444, ""); //ZEILE: 107
    TextDrawFont( , 2); //ZEILE: 108
    TextDrawLetterSize( , 0, 0);
    TextDrawColor( , 0xFF8000FF);
    TextDrawSetOutline( , 0);
    TextDrawSetProportional( , 1);
    TextDrawSetShadow( , 1);

    Moin Moin..
    Mein Script ist etwas sehr im "Arsch".. Brauche wen der Das Reppen kann..
    Das Prob. ist.. Ich habe am Anfang mit ZCMD gescriptet aber will jetzt mit OCMD scripten.
    Doch als ich das Rüberkopiert habe, kammen ca. 30 errors..
    Habe die Error´s auf 8 runtergearbeitet.
    Wenn jemand pls Teamviewer kommen könnte.. Pls per PN Melden.


    Danke


    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(595) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed")
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(605) : error 017: undefined symbol "strtok"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(605) : error 033: array must be indexed (variable "cmd")
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(797) : error 017: undefined symbol "playeird"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(800) : error 017: undefined symbol "hellbalu"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(891) : warning 217: loose indentation
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(891) : error 017: undefined symbol "dcmd_makeadmin"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(891) : warning 215: expression has no effect
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(891) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(891) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(891) : fatal error 107: too many error messages on one line


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



    8 Errors.

    switch(classid)


    So und es muss unter dem Callback OnPlayerRequestClass sein ;)


    mfg. :thumbup:


    Sobald ich es so mache,
    kommt das..
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 017: undefined symbol "SpielerInfo"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 017: undefined symbol "playerid"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : fatal error 107: too many error messages on one line


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



    4 Errors.

    Guten Tag,


    Ich habe eine Skinauswahl(z.B für das LSPD) erstellt.
    Doch als ich Fertig war,
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(67) : error 010: invalid function or declaration
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 017: undefined symbol "classid"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : error 029: invalid expression, assumed zero
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(108) : fatal error 107: too many error messages on one line


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



    5 Errors.


    Zeile:
    switch(classid[playerid]) //HIER IST ZEILE 108!!
    {
    case 4,5:
    {
    if(SkinFrak[playerid] != frak)
    {
    GameTextForPlayer(playerid,"~b~Cops",3000,6);
    }
    else
    {
    GameTextForPlayer(playerid,"~g~LS Police Department",3000,6);
    }
    case 6,7:
    {
    SkinFrak[playerid] = 2;
    if(SkiNFrak[playerid] != frak)
    {
    GameTextForPlayer(playerid,"~w~FBI",3000,6);
    }
    else
    {
    GameTextForPlayer(playerid,"~g~FBI",3000,6);
    }
    default:
    {
    SkinFrak[playerid] = 0;
    if(SkinFrak[playerid] != frak)
    {
    GameTextForPlayer(playerid,"~w~Zivilisten",3000,6);
    }
    else
    {
    GameTextForPlayer(playerid,"~g~Zivilisten",3000,6);
    }


    Zeile 67:
    //Skinauswahl
    new SkinFrak[MAX_PLAYERS];
    new frak;
    frak = SpielerDaten[playerid][Fraktion]; //DAS IST DER ERROR..


    iwie geht das nicht ...


    C:\Users\Sinan\Desktop\SAMP SERVER2\pawno\include\ocmd.inc(43) : warning 201: redefinition of constant/macro (symbol "OnPlayerCommandText")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.

    Paar error´s...


    Fehler:
    C:\Users\Sinan\Desktop\SAMP SERVER2\pawno\include\ocmd.inc(43) : warning 201: redefinition of constant/macro (symbol "OnPlayerCommandText")
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(603) : error 017: undefined symbol "strtok"
    C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(603) : error 033: array must be indexed (variable "cmd")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    Zeilen:
    Zeile 43:
    //Enums
    enum SpielerDaten //das Soll der Error sein :(..
    {
    Adminlevel,
    pSupporter,
    Level,
    Fraktion,
    Team,
    sLogin
    };


    Zeile 603:
    public OnPlayerCommandPerformed(playerid, cmdtext[], success)
    {
    if(success == 1)
    {
    return 1;
    }
    //Admin Chat
    new sendername[MAX_PLAYER_NAME];
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx); //das Soll der Error sein ;( ...

    Heyho,


    Ich suche für mein Projekt ein paar Ranggrafiken.
    Was ich gerne Hätte:


    Projektleiter=Hellblau
    Stellv. Projektleiter=Blau
    1337 - Support Admin=Rot
    Support Admin=Orange
    Moderator=Gelb
    Supporter=Braun
    Uservertreter=Violett
    Erleuchteter=Weiß
    Anfänger=Weiß
    Profi=Weiß
    Schüler=Weiß
    Fortgeschrittener=Weiß
    Meister=Weiß


    -Ihr werdet damit die Macht des Selfmade´s unterstützen :).

    Aber ich habe doch auch 1 befehl mit zcmd ... (makeadmin)


    cmd(makeadmin,playerid, params[])
    {
    new pid,level;//das kann alles bleiben, weil es dcmd ähnlich ist
    if(sscanf(params,"ud", pid, level))
    {
    return SendClientMessage(playerid,grün,"Verwendung : /makeadmin [ID] [Level]");
    }
    if(IstSpielerAdmin(playerid, 5))
    {
    if(pid == INVALID_PLAYER_ID)
    {
    return SendClientMessage(playerid,ROT,"Ungültiger Spieler!");
    }
    if(IstSpielerAdmin(pid,level) == level)
    {
    return SendClientMessage(playerid, ROT,"Der Spieler, hat schon das Adminlevel!");
    }
    else
    {
    sSpieler[pid][Adminlevel] = level;
    SendClientMessage(pid, hellblau, "Du bist nun ein Admin");
    SendClientMessage(playerid,hellblau,"Du hast jemanden zum Admin gemacht!");
    }
    }
    else
    {
    return SendClientMessage(playerid,ROT,"Du bist kein Admin!");
    }
    return 1;
    }