Beiträge von LiMiTEDʀᴇʟσᴀᴅᴇᴅ

    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(7659) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(7977) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(7991) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8014) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8037) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8063) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8093) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8671) : error 031: unknown directive
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8671 -- 8672) : warning 215: expression has no effect
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8672) : error 001: expected token: ";", but found "new"
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8674) : error 010: invalid function or declaration
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8677) : error 010: invalid function or declaration
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8679) : error 010: invalid function or declaration
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8685) : error 010: invalid function or declaration
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8689) : error 021: symbol already defined: "GetPlayerName"
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8694) : error 021: symbol already defined: "PlayerPlaySound"
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8698) : error 010: invalid function or declaration
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(8941) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(9743) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(10111) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(10683) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(14976) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(15862) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(15862) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(15900) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(15900) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(15938) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(15938) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16025) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16031) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16047) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16061) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16075) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16089) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16103) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16117) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16134) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16148) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16162) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16177) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16205) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16219) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16284) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(16286) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(42292) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(42386) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(42572) : warning 219: local variable "sendername" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(42575) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(44012) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(44053) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(44651) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(44771) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\RoS-0.3e\gamemodes\RoSV.1.1.pwn(44830) : warning 219: local variable "string" shadows a variable at a preceding level



    Ich brauche umbeding hilfe SKYPE: c_r_97_dennis


    Hilfe :(

    So jetzt habe ich es mal so gemacht wie du es gesagt hast und dabei kam das raus:
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(9597) : warning 202: number of arguments does not match definition
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(14361) : error 033: array must be indexed (variable "armytors")
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(14362) : error 017: undefined symbol "armytors1"
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(14363) : error 033: array must be indexed (variable "armytors2")
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(14364) : error 033: array must be indexed (variable "armytor")
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(14365) : error 033: array must be indexed (variable "armytor3")
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : warning 219: local variable "armytors" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : warning 219: local variable "armytors2" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : warning 219: local variable "armytor" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : warning 219: local variable "armytor3" shadows a variable at a preceding level
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(24506) : warning 202: number of arguments does not match definition



    Zeilen:
    9597: else if (IsPlayerInRangeOfPoint(i,3.0,203.2919,1873.1312,13.1406,224.3854))
    14361: armytors = CreateObject(971, 289.60000610352, 1821.0999755859, 16.200000762939, 90, 0, 90);
    14362: armytors1 = CreateObject(971, 284.89999389648, 1819.8000488281, 16.200000762939, 90, 0, 270);
    14363: armytors2 = CreateObject(988, 96.599998474121, 1921.4000244141, 17.10000038147, 0, 0, 270);
    14364: armytor = CreateObject(971, 134.39999389648, 1942.5, 16.89999961853, 90, 0, 0);
    14365: armytor3 = CreateObject(971, 134.19999694824, 1937.9000244141, 17.10000038147, 90, 0, 180);
    19826: new armytors, armytors1, armytors2, armytor[3], armytor3[3];
    24506: if(IsPlayerInRangeOfPoint(playerid,3.0,203.2919,1873.1312,13.1406,224.3854))

    Jetzt kommen diese Errors:


    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19835) : error 028: invalid subscript (not an array or too many subscripts): "armytor1"
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19835) : warning 215: expression has no effect
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19835) : error 001: expected token: ";", but found "]"
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19835) : error 029: invalid expression, assumed zero
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19835) : fatal error 107: too many error messages on one line


    Zeile:
    MoveObject(armytor1[1],284.89999389648, 1819.8000488281, 10, 2.00);// Army1 Rein OPEN

    Danke,
    aber es kommen immer noch diese Errors:


    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 028: invalid subscript (not an array or too many subscripts): "armytor"
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : warning 215: expression has no effect
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 001: expected token: ";", but found "]"
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 029: invalid expression, assumed zero
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : fatal error 107: too many error messages on one line


    new armytor;
    new armytor1;
    new armytor2;
    new armytor3;
    new armytor4;

    //Army
    if(strcmp(cmdtext,"/army1",true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,283.4176,1821.6686,17.6406,274.2540,30.0))
    {
    if(armytor == 0)
    {
    armytor = 1;
    MoveObject(armytor[0],289.60000610352, 1821.0999755859, 10, 2.00);// army Rein OPEN
    MoveObject(armytor1[1],284.89999389648, 1819.8000488281, 10, 2.00);// Army1 Rein OPEN
    }
    else
    {
    armytor = 0;
    MoveObject(armytor[0],289.60000610352, 1821.0999755859, 10-10, 2.00);// Army raus CLOSE
    MoveObject(armytor1[1],284.89999389648, 1819.8000488281, 10-10, 2.00);//army1 raus CLOSE
    }
    }
    }
    if(strcmp(cmd,"/army2",true) == 0)
    {
    if(IsACop(playerid))
    {
    if(armytor2 == 0)
    {
    MoveObject(armytor2, 96.599998474121, 1921.4000244141, 17.10000038147,5.0);
    SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    armytor2 = 1;
    }
    else
    {
    MoveObject(armytor2, 96.599998474121, 1921.4000244141, 17.10000038147,5.0);
    SendClientMessage(playerid, COLOR_RED, "Tor geschlossen");
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    armytor2 = 0;
    }
    }
    else SendClientMessage(playerid,COLOR_RED," Du bist kein Beamter");
    return 1;
    }
    if(strcmp(cmdtext,"/army3",true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,134.7282,1938.2645,19.2865,358.2121,30.0))
    {
    if(armytor == 0)
    {
    armytor3 = 1;
    MoveObject(armytor3[0],134.39999389648, 1942.5, 10, 2.00);// army3 Rein OPEN
    MoveObject(armytor4[1],284.89999389648, 1819.8000488281, 10, 2.00);// Army4 Rein OPEN
    }
    else
    {
    armytor3 = 0;
    MoveObject(armytor3[0],289.60000610352, 1821.0999755859, 10-10, 2.00);// Army3 raus CLOSE
    MoveObject(armytor4[1],134.19999694824, 1937.9000244141, 10-10, 2.00);//army4 raus CLOSE
    }
    }
    }


    Hier die Zeile und die Errors:
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 028: invalid subscript (not an array or too many subscripts): "armytor"
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : warning 215: expression has no effect
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 001: expected token: ";", but found "]"
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : error 029: invalid expression, assumed zero
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19833) : fatal error 107: too many error messages on one line
    MoveObject(armytor[0],289.60000610352, 1821.0999755859, 10, 2.00);// army Rein OPEN


    Das ist mein Army Tor System
    Kann mir einer Helfen?
    Nach einem Error kommt der Nächste -.-
    Bitte guckt euch das System an...

    Hier die Errors:
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : error 076: syntax error in the expression, or invalid function call
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : error 029: invalid expression, assumed zero
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : warning 215: expression has no effect
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : error 001: expected token: ";", but found ")"
    C:\Users\Dennis\Desktop\Reallife\gamemodes\WoSV.1.0....pwn(19826) : fatal error 107: too many error messages on one line


    Hier die Zeile:
    if(strcmp,cmdtext,"/army1",true)==0)

    //Army
    if(strcmp,cmdtext,"/army1",true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,283.4176,1821.6686,17.6406,274.2540,30.0))
    {
    if(armytor == 0)
    {
    armytor = 1;
    MoveObject(armytor[0],289.60000610352, 1821.0999755859, 10, 2.00);// army Rein OPEN
    MoveObject(armytor1[1],284.89999389648, 1819.8000488281, 10, 2.00);// Army1 Rein OPEN
    }
    else
    {
    armytor = 0;
    MoveObject(armytor[0],289.60000610352, 1821.0999755859, 10-10, 2.00);// Army raus CLOSE
    MoveObject(armytor1[1],284.89999389648, 1819.8000488281, 10-10, 2.00);//army1 raus CLOSE
    }
    }
    }




    ist das so richtig?

    //Army
    if(strcmp(cmd,"/army1",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    MoveObject(armytor,289.60000610352, 1821.0999755859, 16.200000762939,3.0);
    MoveObject(armytor1,284.89999389648, 1819.8000488281, 16.200000762939,3.0);
    PlaySoundForPlayer(playerid,1035);
    SendClientMessage(playerid, COLOR_RED, "Tor öffnet sich, schließe das Tor bevor du wieder Weg fährst!");
    }
    else SendClientMessage(playerid,COLOR_RED," Du bist kein Army Member");
    return 1;
    }


    Ist das so richtig?

    :D
    Ja, aber wie?
    Also die tore sollen beide gleichzeitig sich öffnen und der befehl soll gleich
    Bei Nova die Army base besteht doch auch aus 2 Gates, da fährt das Tor hoch man fährt auf die andere seite und das tor fährt waagerecht runter....so möchte ich das auch

    Hallo Leute,
    hier ist ein Abschnitt vom O-Chat...



    if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist noch nicht Eingeloggt !");
    return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, " Du kannst nicht sprechen, du bist gemutet !");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, 0xFFE600FF, "NUTZUNG: (/o)oc [ooc chat]");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] == 4)
    {
    format(string, sizeof(string),"((*Super Moderator %s: %s))", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 0 && (noooc))
    {
    format(string, sizeof(string), "(( %s: %s))", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 5)
    {
    format(string, sizeof(string), "((*Administrator %s: %s))", 0xD70000FF, sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 6)
    {
    format(string, sizeof(string), "((*Server Manager %s: %s))", 0xD70000FF, sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 7)
    {
    format(string, sizeof(string), "((**Communityleitung %s: %s))", 0xD70000FF, sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 8)
    {
    format(string, sizeof(string), "((**Serverleitung %s: %s))", 0xD70000FF, sendername, result);
    }
    else return 1;
    OOCOff(COLOR_OOC,string);
    Log("OA-Chat.txt",string);
    }
    return 1;
    Findet jmd den Fehler? Bzw. Bug