Beiträge von datgame



    Problem besteht immer noch


    //Edit:


    Und wenn ich


    GivePlayerMoney(playerid, 10000);
    benutzen will, sagt er mir, dass es zu wenig / viele Argumente sind

    Findet einer den Fehler?



    public OnPlayerText(playerid, text[]) //Wenn der Spieler eine Nachricht sendet, wird dieser Public aufgerufen ;)
    {
    for(new i = 0; i < MAX_PLAYERS; i++){
    if(IsPlayerConnected(i)) {
    new Float:X, Float:Y, Float:Z, n[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, n, sizeof(n));
    GetPlayerPos(playerid, X, Y, Z);
    format(str, sizeof(str), "%s sagt: %s", n, text);
    if(IsPlayerInRangeOfPoint(i, 20.0, X, Y, Z)) {
    SendClientMessage(i, 0xFFFFFFFF, str);
    }
    }
    }
    return 0;
    }


    Es kommt nichts in den Chat, ich bekomme aber auch keine Error

    Hi!


    Ich bekomme in meinem Script viele Errorcodes, doch weiß nicht, wie ich diese beheben kann.


    ErrorCodes

    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(190) : warning 213: tag mismatch
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(191) : warning 213: tag mismatch
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(193) : warning 213: tag mismatch
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(194) : warning 213: tag mismatch
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(681) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(681) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(681) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(681) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(701) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(701) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(701) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(701) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(1044) : warning 219: local variable "alarm" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(1044) : warning 219: local variable "bonnet" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(1044) : warning 219: local variable "boot" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(1044) : warning 219: local variable "objective" shadows a variable at a preceding level
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(172) : warning 204: symbol is assigned a value that is never used: "LSPD_Munni"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(191) : warning 204: symbol is assigned a value that is never used: "LSPD_Munni_Text"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(171) : warning 204: symbol is assigned a value that is never used: "LSPD_Uniform"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(190) : warning 204: symbol is assigned a value that is never used: "LSPD_Uniform_Text"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(181) : warning 204: symbol is assigned a value that is never used: "LVPD_Munni"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(193) : warning 204: symbol is assigned a value that is never used: "LVPD_Munni_Text"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(180) : warning 204: symbol is assigned a value that is never used: "LVPD_Uniform"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(194) : warning 204: symbol is assigned a value that is never used: "LVPD_Uniform_Text"
    C:\Users\Gregor\Desktop\Desktop\SAMP Server\gamemodes\GameMode.pwn(163) : warning 204: symbol is assigned a value that is never used: "lvpd_garage_2"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    ErrorCodes
    25 Warnings.


    ScriptZeilen


    LSPD_Uniform_Text = Create3DTextLabel("Uniform\nauswählen\n{ffffff}/uniform", GRAU, 255.3841, 77.1049, 1003.6406, 40.0, 0, 1); // 190
    LSPD_Munni_Text = Create3DTextLabel("Waffen\nauswählen\n{ffffff}/waffen", GRAU, 227.4215,81.3636,1005.0391, 40.0, 0, 1); // 191

    LVPD_Munni_Text = Create3DTextLabel("Waffen\nauswählen\n{ffffff}/waffen", GRAU, 198.3351,167.6602,1003.0234, 40.0, 0, 1); // 193
    LVPD_Uniform_Text = Create3DTextLabel("Uniform\nauswählen\n{ffffff}/uniform", GRAU, 212.2694,182.6608,1003.0313, 40.0, 0, 1); // 194

    ScriptZeilen
    new motor, licht, alarm, door, bonnet, boot, objective; // 681
    new motor, licht, alarm, door, bonnet, boot, objective; // 701
    new motor, licht, alarm, door, bonnet, boot, objective; // 1044

    ScriptZeilen
    // Restliche Zeilen

    ScriptZeilen
    LSPD_Uniform = CreatePickup(1242, 1,255.3841,77.1049,1003.6406, -1); // 171
    LSPD_Munni = CreatePickup(1247, 1, 227.4215,81.3636,1005.0391, -1); // 172
    LVPD_Uniform = CreatePickup(1242, 1, 212.2694,182.6608,1003.0313, -1); // 180
    LVPD_Munni = CreatePickup(1247, 1, 198.3351,167.6602,1003.0234, -1); // 181

    LSPD_Uniform_Text = Create3DTextLabel("Uniform\nauswählen\n{ffffff}/uniform", GRAU, 255.3841, 77.1049, 1003.6406, 40.0, 0, 1); // 190
    LSPD_Munni_Text = Create3DTextLabel("Waffen\nauswählen\n{ffffff}/waffen", GRAU, 227.4215,81.3636,1005.0391, 40.0, 0, 1); // 191

    LVPD_Munni_Text = Create3DTextLabel("Waffen\nauswählen\n{ffffff}/waffen", GRAU, 198.3351,167.6602,1003.0234, 40.0, 0, 1); // 193
    LVPD_Uniform_Text = Create3DTextLabel("Uniform\nauswählen\n{ffffff}/uniform", GRAU, 212.2694,182.6608,1003.0313, 40.0, 0, 1); // 194

    Dann hast du irgendwo eine Endlosschleife, die alles Restliche blockt.
    Da ist nicht der Server Schuld, sondern du.


    Ich glaube, das muss am Server liegen. Denn mit einem Blank Script kann ich net mal auf den "Spawn" Button Klicken (passiert nix)