Else problem

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
  • also wenn ich
    //exitderby
    if(!strcmp(cmdtext, "/exitdeathmatch", true))
    {
    if(isindm[playerid] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid) == 0)
    {
    ResetPlayerWeapons(playerid);
    new string[256];
    new name[MAX_PLAYER_NAME], str[56];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 256, "%s hat das Deathmatch Verlassen. [/Exitdeathmatch]",name);
    SendClientMessageToAll(COLOR_TOTALGREEN,string);
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
    // Check if player is connected and not a NPC
    if (IsPlayerConnected(i) && !IsPlayerNPC(i))
    {
    // Set the default speed boost for each player
    SpeedBoostMultiplier[i] = 1.5;
    }
    }
    SpawnPlayer(playerid);
    isindm[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Deathmatch verlassen.");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist nicht im Deathmatch!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Bitte Verlasse erst dein Fahrzeug.");
    }
    return 1;
    }
    habe, zeigt er mir
    G:\SA MP Server!\MULTISTUNT by Multivan\gamemodes\MULTISTUNT.pwn(5574) : error 029: invalid expression, assumed zero
    in der zeile
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Bitte Verlasse erst dein Fahrzeug.");
    }
    an, also das
    else


    finde aber kein fehler, oder hab mich versehn,


    mfg multivan

    526C4Hj.png Mit freundlichen Grüßen,
    Noneatme

  • Probier mal so

    if(!strcmp(cmdtext, "/exitdeathmatch", true))
    {
    if(isindm[playerid] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid) == 0)
    {
    ResetPlayerWeapons(playerid);
    new string[256];
    new name[MAX_PLAYER_NAME], str[56];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 256, "%s hat das Deathmatch Verlassen. [/Exitdeathmatch]",name);
    SendClientMessageToAll(COLOR_TOTALGREEN,string);
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
    // Check if player is connected and not a NPC
    if (IsPlayerConnected(i) && !IsPlayerNPC(i))
    {
    // Set the default speed boost for each player
    SpeedBoostMultiplier[i] = 1.5;
    }
    }
    SpawnPlayer(playerid);
    isindm[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Deathmatch verlassen.");
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist nicht im Deathmatch!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Bitte Verlasse erst dein Fahrzeug.");
    }
    return 1;
    }


    ~*|B|*|S|*|F|*~ - Reallife


    *Closed Beta 0.1 - Finish
    *Closed Beta 0.2 - Started
    *Erste Open Beta 0.3 Come Soon !!!


    Prozent : 20%
    ||||||||||


  • if(!strcmp(cmdtext, "/exitdeathmatch", true))
    {
    if(isindm[playerid] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid) == 0)
    {
    ResetPlayerWeapons(playerid);
    new string[256];
    new name[MAX_PLAYER_NAME], str[56];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 256, "%s hat das Deathmatch Verlassen. [/Exitdeathmatch]",name);
    SendClientMessageToAll(COLOR_TOTALGREEN,string);
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
    // Check if player is connected and not a NPC
    if (IsPlayerConnected(i) && !IsPlayerNPC(i))
    {
    // Set the default speed boost for each player
    SpeedBoostMultiplier[i] = 1.5;
    }
    }
    SpawnPlayer(playerid);
    isindm[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Deathmatch verlassen.");
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Bitte Verlasse erst dein Fahrzeug.");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist nicht im Deathmatch!");
    }
    return 1;
    }


    Sollte so passen