Beiträge von Phantom.

    if (strcmp("/stats", cmdtext, true, 10) == 0)
    {
    new string[128], Name[MAX_PLAYER_NAME], Geld = GetPlayerMoney(playerid), Score = GetPlayerScore(playerid), Kills = GetPVarInt(playerid), Deaths = GetPVarInt(playerid), AdminLevel = GetPVarInt(playerid);
    GetPlayerName(playerid,Name,sizeof Name);
    format(string, sizeof(string), "[Stats von %s]\n Name: %s\n Geld: %d\n Score: %d\n Kills: %i\n Deaths: %i\n AdminLevel: %d", Name, Name, Geld, Score, Kills,Deaths, AdminLevel);
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"{FFFFFF}Stats",string,"OK","");
    return 1;
    }


    Stock SpielSpeichern



    dini_IntSet(Spielerdatei,"Kills",GetPVarInt(playerid,"Kills"));
    dini_IntSet(Spielerdatei,"Deaths",GetPVarInt(playerid,"Deaths"));



    Stock Register



    dini_IntSet(Spielerdatei,"Kills",0);
    dini_IntSet(Spielerdatei,"Deaths",0);



    Stock SpielerLaden



    SetPVarInt(playerid,"Kills",dini_Int(Spielerdatei,"Kills"));
    SetPVarInt(playerid,"Deaths",dini_Int(Spielerdatei,"Deaths"));


    Work
    Name
    Geld
    Score


    Not Work
    Kills
    Deaths
    AdminLevel


    Wie das ingame aus Sieht

    Kann vlt damit was anfangen

    Ne frage


    Muss ich das Defienieren
    SetPlayerTeamColour
    SetPlayerTeamFromClass
    weil da kommt so ein error




    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(180) : error 017: undefined symbol "SetPlayerTeamFromClass"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(222) : error 017: undefined symbol "SetPlayerTeamColour"

    Also hier ist mein setscore script



    ocmd:setscore(playerid, params[])
    {
    new giveplayerid, score, string[128];
    if(GetPVarInt(playerid,"Adminlevel") <1337)return SendClientMessage(playerid,Rot,"Dazu bist Du nicht befugt.");
    {
    if(sscanf(params, "ud", giveplayerid, score)) return SendClientMessage(playerid, Blau,"Benutzung: /setscore [ID] [Score]");
    if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, Rot,"[Fehler] {FFFFFF}Der Spieler ist nicht Online.");
    if(score < 0 || score > 1000000)return SendClientMessage(playerid, Rot,"[Fehler] {FFFFFF}Du darfst nicht mehr als 1.000.000.");


    {
    format(string, sizeof(string), "[Admin Control] {FF6E00}%s{FFFFFF} hat dein Score auf %d gesetzt.",SpielerName(playerid),score);
    SendClientMessage(giveplayerid, 0x0099CCFF, string);
    SendClientMessage(playerid, 0x0099CCFF, string);
    SetPlayerScore(giveplayerid, score);
    }
    }
    return 1;
    }

    ocmd:spec(playerid, params[])
    {
    new Giveplayerid,String[256], Name2[256];
    if(GetPVarInt(playerid,"Adminlevel") <2)return SendClientMessage(playerid,Rot,"Dazu bist Du nicht befugt.");
    {
    if (sscanf(params, "d", (Giveplayerid)) SendClientMessage(playerid, Blau,"Benutzung: /Spec [ID]");
    if (!IsPlayerConnected(Giveplayerid)) SendClientMessage(playerid,Rot,"[Fehler] {FFFFFF}Der Spieler ist nicht Online.");
    {
    if (Specing[Giveplayerid] == 1 )
    {
    SendClientMessage(playerid, Rot,"[Fehler] {FFFFFF}Der Spieler wird bereit geSpected.");
    }
    else
    {
    GetPlayerName(playerid,Name2,256);
    GetPlayerName(Giveplayerid, Name2, 256);
    format(String, 256, "Admin Control]{FF6E00}[%i]{FFFFFF} {FF6E00}%s{FFFFFF} spect nun {FF6E00}[%i]{FFFFFF} {FF6E00}%s{FFFFFF}",playerid,Giveplayerid, Name2));
    CallLocalFunction("ircRemoteSay", "iss", 1, "#FSE", String);
    Specing[playerid] = 1;
    }
    if ( !IsPlayerInAnyVehicle(Giveplayerid))
    {
    TogglePlayerSpectating(playerid, 1);
    PlayerSpectatePlayer(playerid, Giveplayerid);
    SetPlayerInterior(playerid,GetPlayerInterior(Giveplayerid));
    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Giveplayerid));
    return 1;
    }
    else
    {
    TogglePlayerSpectating(playerid, 1);
    PlayerSpectateVehicle(playerid, GetPlayerVehicleID(Giveplayerid));
    SetPlayerInterior(playerid,GetPlayerInterior(Giveplayerid));
    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Giveplayerid));
    return 1;
    }
    }
    }
    return 1;
    }


    ocmd:specoff(playerid, params[])
    {
    #pragma unused params
    TogglePlayerSpectating(playerid, 0);
    Specing[playerid] = 0;
    return 1;
    }



    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(6) : error 001: expected token: ")", but found "-identifier-"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : error 017: undefined symbol "Specing"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : warning 215: expression has no effect
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : error 001: expected token: ";", but found "]"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : error 029: invalid expression, assumed zero
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : fatal error 107: too many error messages on one line

    ocmd:gm(playerid, params[])
    {
    new giveplayerid, string[128];
    if(GetPVarInt(playerid,"Adminlevel") <1337)return SendClientMessage(playerid,Rot,"Dazu bist Du nicht befugt.");
    {
    if(sscanf(params, "u",giveplayerid)) return SendClientMessage(playerid, Blau,"Benutzung: /GM [ID]");
    if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, Rot,"[Fehler] {FFFFFF}Der Spieler ist nicht Online.");
    else
    {
    format(string, sizeof(string), "[Admin Control] {FF6E00}%s{FFFFFF} hat dich Unverwundbar gemacht!.", SpielerName(giveplayerid);
    SendClientMessage(giveplayerid, Blau, string);
    format(string, sizeof(string),"[Admin Control] {FFFFFF}Du hast {FF6E00}%s {FFFFFF} Unverwundbar gemacht.", SpielerName(giveplayerid);
    SendClientMessage(playerid, Blau, string);
    }
    return 1;
    }



    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\admin.pwn(10) : error 001: expected token: ",", but found ";"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\admin.pwn(12) : error 001: expected token: ",", but found ";"