Beiträge von ulf_18

    406 public OnPlayerCommandText(playerid, cmdtext[])
    407 {
    408 new string[256];
    409 new playermoney;
    410 new sendername[MAX_PLAYER_NAME];
    411 new giveplayer[MAX_PLAYER_NAME];
    412 new cmd[256];
    413 new giveplayerid, moneys, idx;
    414 new tmp[256];
    415 strcmp(const string[], &idx);;;;


    if (strcmp("/Waffen", cmdtext, true, 11) == 0)
    {
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Waffen Shop","Schlagring ($500)\nGolfschläger ($500)\nKnüppel ($500)\nMesser ($500)\nBaseballschläger ($500)\nSchaufel ($500)\nBilliardstock ($500)\nKatana ($500)\nKettensäge ($1500)\n9mm Pistole ($2000)\nSchalldämpfer 9mm Pistole ($2100)\nDesert Eagle ($2100)\nSawn-Off Shotgun ($10000)\nAK-47 ($5000)\nTEC-9 ($2500)\nPro Gamer ($500000)\n","Kaufen!", "Verlassen!");
    return 1;
    }
    if(strcmp(cmd, "/kickwahl", true) == 0)
    {
    if(Wait[playerid] == 1) return SendClientMessage(playerid, RED, "Bitte warte 60 Sekunden bevor du wieder wählst");
    for (new i = 0; i < GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    #if defined ADMINSONLNE
    if(IsPlayerAdmin(i))
    {
    format(string, sizeof(string), "ERROR: Es ist ein Admin online. (%s (%d)) PM Them for help.", Name(i), i);
    SendClientMessage(playerid, RED, string);
    return 1;
    }
    #endif
    PlayerCount++;
    }
    }
    if(PlayerCount <= 3)
    {
    SendClientMessage(playerid, RED, "ERROR: Es müssen mehr als 3 Spieler Online sein");
    return 1;
    }
    new reason[256];
    tmp = string(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, ORANGE, "USAGE: /kickwahl [ID/PartOfName] [Grund]");
    SendClientMessage(playerid, ORANGE, "FUNCTION: Startet einen Timer, in der Zeit können die User wählen ob der Player gekickt werden soll. (30 Sekunden)");
    return 1;
    }
    if(VoteKick == 1)
    {
    SendClientMessage(playerid, RED, "ERROR: Es ist schon eine Wahl in arbeit, warte bitte");
    return 1;
    }
    if(IsPlayerAdmin(giveplayerid))
    {
    SendClientMessage(playerid, RED, "ERROR: Du kannst keine Admins kicken!");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    while ((idx < length) && ((idx - offset) < (sizeof(reason) - 1)))
    {
    reason[idx - offset] = cmdtext[idx];
    idx++;
    }
    reason[idx - offset] = EOS;
    if(!strlen(reason))
    {
    SendClientMessage(playerid, ORANGE, "USAGE: /kickwahl [ID/PartOfName] [Grund]");
    return 1;
    }
    else
    {


    format(string, sizeof(string), "[NEWS]: Spieler %s hat eine kickwahl gestartet gegen Spieler %s. [Grund: %s] - %d Sekunden verbleiben.", Name(playerid), Name(giveplayerid), reason, VOTETIME / 1000);
    print(string);
    SendClientMessageToAll(YELLOW, string);
    SendClientMessageToAll(YELLOW, "MESSAGE: Willst du diesen Spieler wirklich kicken. Schreib /wahl");
    Votes = 1;
    SetTimerEx("Wahl Zeit", VOTETIME, 0, "i", giveplayerid);
    VoteKick = 1;
    Voted[playerid] = 1;
    Wait[playerid] = 1;
    SetTimerEx("WaitT", WAIT_TIME, 0, "d", playerid);
    }
    }
    else if(giveplayerid == INVALID_PLAYER_ID)
    {
    format(string, sizeof(string), "ERROR: %d ist kein aktiver Spieler.", giveplayerid);
    SendClientMessage(playerid, RED, string);
    }
    return 1;
    }




    Fehler ist


    C:\Users\Tom Wahl\Desktop\Samp server- Warserver - Kopie\gamemodes\basic.pwn(415) : error 029: invalid expression, assumed zero
    C:\Users\Tom Wahl\Desktop\Samp server- Warserver - Kopie\gamemodes\basic.pwn(415) : error 029: invalid expression, assumed zero
    C:\Users\Tom Wahl\Desktop\Samp server- Warserver - Kopie\gamemodes\basic.pwn(415) : warning 215: expression has no effect
    C:\Users\Tom Wahl\Desktop\Samp server- Warserver - Kopie\gamemodes\basic.pwn(415) : error 001: expected token: ";", but found ")"
    C:\Users\Tom Wahl\Desktop\Samp server- Warserver - Kopie\gamemodes\basic.pwn(415) : 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.


    Ich komme seit tagen nicht darauf helft mir bitte!!:D