Beiträge von DarkShadow.

    Ich finde die Maps wirklich voll super, aber die Preise
    sind stolz, wenn du ein Reallife Paket anbieten würdest, sprich
    BSN, 5 Basen und ein Noobspawn für 20 Euro, wäre das voll
    Super :)
    Bleib am Ball. :thumbup:

    Dann kommen diese Errors :
    C:\Users\Admin\Desktop\[GS]\gamemodes\GS.pwn(335) : warning 213: tag mismatch
    C:\Users\Admin\Desktop\[GS]\gamemodes\GS.pwn(335) : warning 202: number of arguments does not match definition
    C:\Users\Admin\Desktop\[GS]\gamemodes\GS.pwn(335) : warning 202: number of arguments does not match definition
    C:\Users\Admin\Desktop\[GS]\gamemodes\GS.pwn(335) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Warnings.

    C:\Users\Admin\Desktop\Desktop\Sachen\supmobil.pwn(33) : warning 215: expression has no effect
    C:\Users\Admin\Desktop\Desktop\Sachen\supmobil.pwn(52) : warning 215: expression has no effect
    C:\Users\Admin\Desktop\Desktop\Sachen\supmobil.pwn(70) : error 029: invalid expression, assumed zero
    C:\Users\Admin\Desktop\Desktop\Sachen\supmobil.pwn(70) : warning 215: expression has no effect
    C:\Users\Admin\Desktop\Desktop\Sachen\supmobil.pwn(70) : error 001: expected token: ";", but found "]"
    C:\Users\Admin\Desktop\Desktop\Sachen\supmobil.pwn(70) : error 029: invalid expression, assumed zero
    C:\Users\Admin\Desktop\Desktop\Sachen\supmobil.pwn(70) : 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.


    Zeig mal die Stellen im Script !

    So gehört es richtig:
    if(strcmp(cmd, "/chouse", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    new Float:x, Float:y, Float:z;
    GetPlayerName(playerid, playername, sizeof(playername));
    if(!strlen(strget(cmdtext,1)) || !strlen(strget(cmdtext,2)) || !strlen(strget(cmdtext,3)))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /chouse [Type1-12] [Kosten] [Level]");
    return 0;
    }
    new HausType;
    new money;
    new level = strval(strget(cmdtext,3));
    HausType = strval(strget(cmdtext,1));
    money = strval(strget(cmdtext,2));
    if (PlayerInfo[playerid][pAdmin] >= 2000)
    {
    GetPlayerPos(playerid,x,y,z);
    HouseInfo[LoadedHauser][hEntrancex]=x;//drausen
    HouseInfo[LoadedHauser][hEntrancey]=y;
    HouseInfo[LoadedHauser][hEntrancez]=z;
    HouseInfo[LoadedHauser][hExitx] = HausInterior[HausType][xx];//drine
    HouseInfo[LoadedHauser][hExity] = HausInterior[HausType][yy];
    HouseInfo[LoadedHauser][hExitz] = HausInterior[HausType][zz];
    HouseInfo[LoadedHauser][hValue]=money;//Price
    HouseInfo[LoadedHauser][hInt] = HausInterior[HausType][Inter];
    HouseInfo[LoadedHauser][hLevel] = level;//LEVEL
    HouseInfo[LoadedHauser][hHel] = 0;
    HouseInfo[LoadedHauser][hArm] = 0;
    HouseInfo[LoadedHauser][hHealthx] = 0;
    HouseInfo[LoadedHauser][hHealthy] = 0;
    HouseInfo[LoadedHauser][hHealthz] = 0;
    HouseInfo[LoadedHauser][hArmourx] = 0;
    HouseInfo[LoadedHauser][hArmoury] = 0;
    HouseInfo[LoadedHauser][hArmourz] = 0;
    HouseInfo[LoadedHauser][hLock] = 1;
    HouseInfo[LoadedHauser][hOwned] = 0;
    HouseInfo[LoadedHauser][hVec] = 418;
    HouseInfo[LoadedHauser][hVcol1] = -1;
    HouseInfo[LoadedHauser][hVcol2] = -1;
    strmid(HouseInfo[LoadedHauser][hOwner], "The State", 0, strlen("The State"), 255);
    strmid(HouseInfo[LoadedHauser][hDiscription], HausInterior[HausType][Name], 0, strlen(HausInterior[HausType][Name]), 255);
    new string2[128];
    format(string2, sizeof(string2), "[Haus zu verkaufen - %s]\nPreis: $%d\nLevel: %d\n/buyhouse zum kaufen",HouseInfo[LoadedHauser][hDiscription],HouseInfo[LoadedHauser][hValue],HouseInfo[LoadedHauser][hLevel]);
    Update3DTextLabelText(HouseInfo[LoadedHauser][Text], COLOR_FORSELL, string2);
    OnPropUpdate();
    return 0;
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "Du bist nicht befugt.");
    }
    }
    return 1;
    }

    if (strcmp(cmdtext, "/stats", true,10))
    {
    new string [128],frakname,stro[126];
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0: (fraktname="Zivi"; )
    case 1: (fraktname= "LSPD"; )
    case 2: (fraktname="FBI"; )
    case 3: (fraktname="Sonder Einsatz Kommando"; )
    case 4: (fraktname="Herr"; )
    case 5: (fraktname="LuftWaffe"; )
    case 6: (fraktname="Mariene"; )
    case 7: (farktname="Sanitäter"; )
    case 8: (fraktname="O-Amt"; )
    case 9: (fraktname="Grove Street"; )
    case 10: (fraktname="Los Santos Vagos"; )
    case 11: (fraktname="Ballas"; )
    case 12: (fraktname="Azsteakas"; )
    case 13: (fraktname="Russen Mafia"; )
    case 14: (fraktname="Jtaly Mafia"; )
    case 15: (fraktname="Yakuza"; )
    case 16: (fraktnama="Hitmann"; )
    }
    format(string,sizeof(string),"[Name: %s] [Level: %i] [Adminlevel: %i] [Fraktion; %s] ",Spielername(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),fraktname);
    SendClientMessage(playerid,GELB,string);
    return 1;
    }
    format(stro,sizeof(stro),"[Name: %s] [Level: %i] [Adminlevel: %i] [Fraktion; %s] ",Spielername(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),fraktname);
    SendClientMessage(playerid,GELB,string);
    return 1;


    }


    C:\Users\Nico\Desktop\GTA server\gamemodes\test.pwn(343) : error 001: expected token: "-string end-", but found "-identifier-"


    C:\Users\Nico\Desktop\GTA server\gamemodes\test.pwn(343) : error 033: array must be indexed (variable "-unknown-")


    C:\Users\Nico\Desktop\GTA server\gamemodes\test.pwn(344) : error 001: expected token: ";", but found "case"


    C:\Users\Nico\Desktop\GTA server\gamemodes\test.pwn(344) : error 001: expected token: "-string end-", but found "-identifier-"


    C:\Users\Nico\Desktop\GTA server\gamemodes\test.pwn(344) : error 036: empty statement


    C:\Users\Nico\Desktop\GTA server\gamemodes\test.pwn(344) : fatal error 107: too many error messages on one line






    und das jetzt die zeilen:




    if (strcmp(cmdtext, "/stats", true,10))


    {


    new string [128];


    new fraktname[64];


    switch(GetPVarInt(playerid,"Fraktion"))


    {


    case 0: (fraktname="Zivi"; )
    case 1: (fraktname= "LSPD"; )
    case 2: (fraktname="FBI"; )
    case 3: (fraktname="Sonder Einsatz Kommando"; )
    case 4: (fraktname="Herr"; )
    case 5: (fraktname="LuftWaffe"; )
    case 6: (fraktname="Mariene"; )
    case 7: (farktname="Sanitäter"; )
    case 8: (fraktname="O-Amt"; )
    case 9: (fraktname="Grove Street"; )
    case 10: (fraktname="Los Santos Vagos"; )
    case 11: (fraktname="Ballas"; )
    case 12: (fraktname="Azsteakas"; )
    case 13: (fraktname="Russen Mafia"; )
    case 14: (fraktname="Jtaly Mafia"; )
    case 15: (fraktname="Yakuza"; )
    case 16: (fraktnama="Hitmann"; )
    }




    // 1 reie


    format(string,sizeof(string),"[Name: %s] [Level: %1] [Adminlevel: %1] [Fraktion; %s] ",Spielername(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),fraktname);


    SendClientMessage(playerid,GELB,string);


    // 2 reie


    return 1;


    }


    // 1 reie


    format(string,sizeof(string),"[Name: %s] [Level: %1] [Adminlevel: %1] [Fraktion; %s] ",Spielername(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),fraktname);


    SendClientMessage(playerid,GELB,string);


    // 2 reie


    return 1;


    }


    Ist das so schwer?


    Fehler war
    format(string,sizeof(string),"[Name: %s] [Level: %i] [Adminlevel: %i] [Fraktion; %s] ",Spielername(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),fraktname); // i stat 1 ;D