Beiträge von Crank1221

    Hey


    Brauche hilfe möchte einen Friedhof machen


    SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min)


    und wir haben alle ecken abgesavet hier die coordys



    AddPlayerClass(288,2234.5916,-64.3054,26.4844,45.6644,0,0,0,0,0,0); // friedhof ecke1
    AddPlayerClass(288,2245.7000,-64.2915,26.5336,315.6643,0,0,0,0,0,0); // friedhof ecke2
    AddPlayerClass(288,2245.6719,-87.4796,26.4931,190.0165,0,0,0,0,0,0); // friedhof ecke3
    AddPlayerClass(288,2234.5913,-87.6463,26.4928,99.7756,0,0,0,0,0,0); // friedhof ecke 4

    18809= if (strcmp(cmdtext, "/taxitorzu", true)==0)
    18860= if(strcmp(cmd, "/orten", true) == 0)
    18696= if (strcmp(cmdtext, "/Rsliftrunter", true)==0)
    18818= if (strcmp(cmdtext, "/Taxitorauf", true)==0)

    C:\Users\Sven\Desktop\Script\SoR-Reallife.pwn(18660) : warning 217: loose indentation
    C:\Users\Sven\Desktop\Script\SoR-Reallife.pwn(18696) : warning 217: loose indentation
    C:\Users\Sven\Desktop\Script\SoR-Reallife.pwn(18809) : warning 217: loose indentation
    C:\Users\Sven\Desktop\Script\SoR-Reallife.pwn(18818) : warning 217: loose indentation
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Warnings.

    Ses die error kommen.


    C:\Users\Master\Desktop\Script\Script1.0\gamemodes\Script.pwn(49686) : error 021: symbol already defined: "StripNewLine"
    C:\Users\Master\Desktop\Script\Script1.0\gamemodes\Script.pwn(49796) : error 021: symbol already defined: "mktime"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors


    stock StripNewLine(string[]){
    new len=strlen(string);
    if(string[0]==0) return ;
    if((string[len-1]=='\n')||(string[len - 1]=='\r')){
    string[len - 1] = 0;
    if(string[0]==0) return ;
    if((string[len-2]=='\n')||(string[len-2]=='\r')) string[len-2]=0;
    }
    }


    stock mktime(hour, minute, second, day, month, year)
    {
    static
    days_of_month[12] =
    {
    31,
    29,
    31,
    30,
    31,
    30,
    31,
    31,
    30,
    31,
    30,
    31
    },
    lMinute,
    lHour,
    lDay,
    lMonth,
    lYear,
    lMinuteS,
    lHourS,
    lDayS,
    lMonthS,
    lYearS;
    if (year != lYear)
    {
    lYearS = 0;
    for (new j = 1970; j < year; j++)
    {
    lYearS += 31536000;
    if ((!(j % 4) && (j % 100)) || !(j % 400)) lYearS += 86400;
    }
    lYear = year;
    }
    if (month != lMonth)
    {
    lMonthS = 0;
    month--;
    for (new i = 0; i < month; i++)
    {
    lMonthS += days_of_month[i] * 86400;
    if ((i == 1) && ((!(year % 4) && (year % 100)) || !(year % 400))) lMonthS += 86400;
    }
    lMonth = month;
    }
    if (day != lDay)
    {
    lDayS = day * 86400;
    lDay = day;
    }
    if (hour != lHour)
    {
    lHourS = hour * 3600;
    lHour = hour;
    }
    if (minute != lMinute)
    {
    lMinuteS = minute * 60;
    lMinute = minute;
    }
    return lYearS + lMonthS + lDayS + lHourS + lMinuteS + second;
    }



    dcmd_sirene(playerid,params[])
    {
    new status[50];
    if(sscanf(params,"s",status)) { return SendClientMessage(playerid,0xFF0000,"Benutzung: /sirene [an/aus]"); }
    if(!IsACop(playerid))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Cop!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
    new vid = GetPlayerVehicleID(playerid);
    if(strcmp(status,"an",true) == 0)
    {
    if(sirenean[vid] == true)return SendClientMessage(playerid,0xFF0000,"Dieses Fahrzeug hat bereits eine Sirene!");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    sirene[vid] = CreateObject(18646,x,y,z,0,0,0,100);
    AttachObjectToVehicle(sirene[vid],vid,-0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
    sirenean[vid] = true;
    SendClientMessage(playerid,0xFF0000,"Du hast die Sirene angeschaltet!");
    }
    else
    if(strcmp(status,"aus",true) == 0)
    {
    if(sirenean[vid] == false)return SendClientMessage(playerid,0xFF0000,"Dieses Fahrzeug hat keine Sirene");
    DestroyObject(sirene[vid]);
    sirenean[vid] =false;
    SendClientMessage(playerid,0xFF0000,"Du hast die Sirene ausgeschaltet!");
    }
    }
    return 1;
    }




    die warnings kommen und die sirene geht nicht


    symbol is never used: "dcmd_sirene"

    Sers


    Brauche hilfe wie ich eine Aaufzug mache
    if(strcmp(cmd,"/army1",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    MoveObject(armytor1,135.19999694824, 1941.5, 18.200000762939+10,3.0);//tor unten
    PlaySoundForPlayer(playerid,1035);
    SetTimer("CloseArmy1", 5000, 0);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    SendClientMessage(playerid, COLOR_RED, "Beeil dich das Tor schließt in 5sek!");
    }
    else SendClientMessage(playerid,COLOR_RED," Du bist nicht in der Army");
    return 1;
    }



    Function CloseArmy1()
    {
    MoveObject(armytor1,135.19999694824, 1941.5, 18.200000762939,3);//wo das Objekt hinsoll.. beim schließen !
    return 1;
    }
    So habs ich gemacht



    und hier das object


    armytor1 = CreateDynamicObject(980, 135.19999694824, 1941.5, 18.200000762939, 90, 179.99450683594, 89.744750976563);

    Guten Tag liebe Leutz


    Ich füge eine map ein wie z.B



    CreateDynamicObject(3532, 301.31503295898, -1188.2144775391, 80.046119689941, 0, 0, 134);
    CreateDynamicObject(3532, 304.65328979492, -1185.1512451172, 80.046119689941, 0, 0, 133.99475097656);
    CreateDynamicObject(3934, 277.69085693359, -1189.7263183594, 79.289024353027, 359.25012207031, 1, 45.013092041016);
    CreateDynamicObject(1215, 306.79312133789, -1182.150390625, 81.814323425293, 0, 0, 0);
    CreateDynamicObject(1215, 317.16552734375, -1172.7568359375, 81.814323425293, 0, 0, 0);
    CreateDynamicObject(970, 279.98767089844, -1160.8591308594, 80.465545654297, 0, 0, 316);
    CreateDynamicObject(970, 283.88146972656, -1156.9493408203, 80.465545654297, 0, 0, 315.99975585938);
    CreateDynamicObject(970, 286.94580078125, -1159.9018554688, 80.465545654297, 0, 0, 315.99975585938);
    CreateDynamicObject(970, 287.93154907227, -1153.3299560547, 80.465545654297, 0, 0, 315.99975585938);
    CreateDynamicObject(970, 290.79870605469, -1156.0821533203, 80.465545654297, 0, 0, 315.99975585938);
    CreateDynamicObject(970, 282.77850341797, -1163.5162353516, 80.465545654297, 0, 0, 315.99975585938);
    CreateDynamicObject(970, 285.75762939453, -1184.6218261719, 80.465545654297, 0, 0, 43.999755859375);
    CreateDynamicObject(970, 283.21157836914, -1181.7181396484, 80.465545654297, 0, 0, 43.994750976563);
    CreateDynamicObject(970, 286.14868164063, -1178.8878173828, 80.465545654297, 0, 0, 43.994750976563);
    CreateDynamicObject(970, 288.708984375, -1181.7366943359, 80.465545654297, 0, 0, 43.994750976563);


    aber diese wird nicht ingame angezeigt what can i do



    Danke im Voraus


    MfG Crank

    Das ist die Server log




    [15:04:23] Script[gamemodes/Reallife99.amx]: Run time error 19: "File or function is not found"
    [15:04:23] Number of vehicle models: 8

    Also egal was ich an meinen script verändere auch wenn es nur 3 buchstaben sind kommt runtime error 19 ich drehe durch was kann ich machen

    Hi


    Also wenn ich mein script am pc starte kommt runtime error 19 und bei SAMP4you kommt unknow script wenn ich starte also es läuft dann unknow script


    bitte um hilfe



    MfG