Beiträge von Freshmatics

    Hallo,ich weis nicht mehr weiter!


    Auf meinen PC server geht es dort komme ich ohne Probleme raus aus der Base doch lade ich das Script auf meinen Server hoch geht es nicht mehr.


    Hier mal de Code:


    if(strcmp(cmd,"/exit",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || IsACop(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,-2636.6863,1402.5952,906.4609))
    {
    SetPlayerPos(playerid,1525.5929,-1479.6849,9.5000);
    SetPlayerFacingAngle(playerid,309.5732);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else SendClientMessage(playerid,COLOR_RED," Du bist nicht Mitglied der Triaden!");
    return 1;
    }



    AddPlayerClass(120,-2636.6863,1402.5952,906.4609,178.2047,0,0,0,0,0,0); // Exit
    AddPlayerClass(120,1525.5929,-1479.6849,9.5000,358.1939,0,0,0,0,0,0); // Spawn ausgang. Triaden Base LS



    Ich weis nicht mehr weiter bitte um Hilfe

    Habe bei /o oder auch /ooc einen Bug nur ich weis nicht welchen.


    Ich habe unten ein Bild angehängt wo es steht was kommt bitte um Hilfe.



    //----------------------------------[ooc]-----------------------------------------------
    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;
    }

    So wie ich es jetzt habe ist der Sound vorhanden aber es fährt kein Tor runter.



    if(strcmp(cmd,"/rtor",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
    {
    if(rtorvar == 0)
    {
    MoveObject(rtor,-2490.6999511719, -168.30000305176, 24.60000038147348,3.0);
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    rtorvar = 1;
    }
    else
    {
    MoveObject(rtor,-2490.6999511719, -168.30000305176, 14.60000038147348-10,3.0);
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    rtorvar = 0;
    }
    }
    else SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied der Brigada");
    return 1;
    }

    Hey,


    Ändere Gerade den Standpunkt der Russen Base und habe die Tore eingefügt doch irgendwie kommen dort fehler auf wo ich nix sehe.



    C:\Users\Mark\Desktop\WoS 3.0.3\gamemodes\Hallo.pwn(20309) : error 001: expected token: ",", but found "."
    C:\Users\Mark\Desktop\WoS 3.0.3\gamemodes\Hallo.pwn(20309) : error 029: invalid expression, assumed zero
    C:\Users\Mark\Desktop\WoS 3.0.3\gamemodes\Hallo.pwn(20309) : error 029: invalid expression, assumed zero
    C:\Users\Mark\Desktop\WoS 3.0.3\gamemodes\Hallo.pwn(20309) : 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.



    Hier der Code:


    if(strcmp(cmd,"/rtor",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
    {
    if(rtorvar == 0)
    {
    MoveObject(rtor,-2490.6999511719, -168.30000305176, 24.60000038147348,3.0);
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    rtorvar = 1;
    }
    else
    {
    MoveObject(rtor,2422.-2490.6999511719, -168.30000305176, 14.60000038147,3.0);
    PlaySoundForPlayer(playerid,1035);
    SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
    rtorvar = 0;
    }
    }
    else SendClientMessage(playerid,COLOR_RED," Du bist kein Mitglied der Brigada");
    return 1;
    }


    Zeile 7 Soll der fehler sein.


    und hier halt das


    rtor = CreateObject(987, -2490.6999511719, -168.30000305176, 24.60000038147, 0, 0, 359.74731445313);



    Vielleicht weis einer weiter.

    Wie gesagt so getan:


    SA-MP Dedicated Server
    ----------------------
    v0.3e-R2, (C)2005-2012 SA-MP Team


    [01:44:40] filterscripts = "" (string)
    [01:44:40]
    [01:44:40] Server Plugins
    [01:44:40] --------------
    [01:44:40] Loading plugin: streamer
    [01:44:40]


    *** Streamer Plugin v2.5.2 by Incognito loaded ***


    [01:44:40] Loaded.
    [01:44:40] Loading plugin: audio
    [01:44:40]


    *** Audio Plugin v0.5 R2 by Incognito loaded ***


    [01:44:40] Loaded.
    [01:44:40] Loading plugin: sscanf
    [01:44:40]


    [01:44:40] ===============================


    [01:44:40] sscanf plugin loaded.


    [01:44:40] (c) 2009 Alex "Y_Less" Cole


    [01:44:40] ===============================


    [01:44:40] Loaded.
    [01:44:40] Loaded 3 plugins.


    [01:44:40]
    [01:44:40] Filterscripts
    [01:44:40] ---------------
    [01:44:40] Loaded 0 filterscripts.


    [01:44:40] Script[gamemodes/Hallo.amx]: Run time error 19: "File or function is not found"
    [01:44:40] Number of vehicle models: 0

    Hier:


    echo Executing Server Config...
    lanmode 0
    rcon_password kennstudnicht
    maxplayers 500
    port 7777
    hostname WoS
    gamemode0 Hallo
    filterscripts
    announce 0
    query 1
    weburl www.sa-mp.com
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    maxnpc 0
    plugins streamer audio sscanf
    logtimeformat [%H:%M:%S]



    und das Plugin habe ich rein getan.

    SA-MP Dedicated Server
    ----------------------
    v0.3e-R2, (C)2005-2012 SA-MP Team


    [01:38:46] filterscripts = "" (string)
    [01:38:46]
    [01:38:46] Server Plugins
    [01:38:46] --------------
    [01:38:46] Loading plugin: streamer
    [01:38:46]


    *** Streamer Plugin v2.5.2 by Incognito loaded ***


    [01:38:46] Loaded.
    [01:38:46] Loading plugin: audio
    [01:38:46]


    *** Audio Plugin v0.5 R2 by Incognito loaded ***


    [01:38:46] Loaded.
    [01:38:46] Loading plugin: sscanf
    [01:38:46]


    [01:38:46] ===============================


    [01:38:46] sscanf plugin loaded.


    [01:38:46] (c) 2009 Alex "Y_Less" Cole


    [01:38:46] ===============================


    [01:38:46] Loaded.
    [01:38:46] Loaded 3 plugins.


    [01:38:46]
    [01:38:46] Filterscripts
    [01:38:46] ---------------
    [01:38:46] Loaded 0 filterscripts.


    [01:38:46] Script[gamemodes/Hallo.amx]: Run time error 19: "File or function is not found"
    [01:38:46] Number of vehicle models: 0