Beiträge von MysteriX

    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(18349) : warning 219: local variable "Spieler" shadows a variable at a preceding level
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53325) : error 010: invalid function or declaration
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53330) : warning 202: number of arguments does not match definition
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53384) : warning 219: local variable "Name" shadows a variable at a preceding level
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53415) : warning 217: loose indentation
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53423) : warning 217: loose indentation
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53773) : warning 203: symbol is never used: "ooc"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.



    der error is da wo das return 1; ist

    Oh bekomme doch nur 1 Error xD:


    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(18349) : warning 219: local variable "Spieler" shadows a variable at a preceding level
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53305) : warning 217: loose indentation
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53310) : warning 217: loose indentation
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53311) : warning 217: loose indentation
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53319) : error 029: invalid expression, assumed zero
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53327) : warning 202: number of arguments does not match definition
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53381) : warning 219: local variable "Name" shadows a variable at a preceding level
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53412) : warning 217: loose indentation
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53420) : warning 217: loose indentation
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53770) : warning 203: symbol is never used: "ooc"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    ocmd:startbonus(playerid,params[])
    {
    new string[258];
    if(IsPlayerInRangeOfPoint(playerid, 10.0,1717.2563,-1910.0349,13.5660))
    {
    if(GetPlayerScore(playerid) == 1)
    {
    SetPlayerScore(playerid,3);
    GivePlayerMoney(playerid,50000);
    PlayerInfo[playerid][pLevel] = 3;
    format(string,sizeof(string),"Du hast Level 3 und 50000$");
    SendClientMessage(playerid,COLOR_YELLOW,string);


    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du kannst das nicht 2 Mal benutze "); // editiere wie du es haben willst.
    } else {//da is der error
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht am /startbonus Punkt ");}
    }
    return 1;
    }

    wo einfügen?


    Kannste mir das evtl hier einbauen:


    ocmd:startbonus(playerid,params[])
    {
    new Geld = 50000;
    new string[258];
    if(!IsPlayerInRangeOfPoint(playerid, 10.0,1717.2563,-1910.0349,13.5660))return SendClientMessage(playerid,COLOR_RED,"Du bist nicht am /startbonus Punkt "); // ! heißt: "if not"
    if(GetPlayerScore(playerid) > 3) return SendClientMessage(playerid,COLOR_RED,"Du kannst das nicht 2 Mal benutze "); // editiere wie du es haben willst.
    {
    GivePlayerMoney(playerid,Geld);
    PlayerInfo[playerid][pLevel] == 3;
    format(string,sizeof(string),"Du hast Level 3 und 50000$");
    SendClientMessage(playerid,COLOR_YELLOW,string);


    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht Level 1");
    }

    return 1;
    }

    I-wie kann ich den Befehl mehrmals benutzen


    Und wenn ich an dem Startbonus punkt bin kommt, Du bist nicht am /startbonus punkt....


    Und wenn ich nicht da bin kann ich den befehl mehrmals benutzen...

    Kann jemand helfen???


    Also das is der Befehl in Pawno:


    ocmd:startbonus(playerid,params[])
    {
    new Geld = 50000;
    if(IsPlayerInRangeOfPoint(playerid, 10.0,1717.2563,-1910.0349,13.5660))return SendClientMessage(playerid,COLOR_RED,"Du bist nicht am /startbonus Punkt "); // Das nur machen wenn du willst das es nur an einer bestimmten Position ist....
    if(PlayerInfo[playerid][pLevel] <= 2)
    {
    GivePlayerMoney(playerid,Geld);
    PlayerInfo[playerid][pLevel] == 3;
    format(string,sizeof(string),"Du hast Level 3 und 50000$");
    SendClientMessage(playerid,COLOR_YELLOW,string);


    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht Level 1");
    }



    return 1;
    }




    Und dann bekomme ich Errors:


    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(18349) : warning 219: local variable "Spieler" shadows a variable at a preceding level
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53309) : warning 215: expression has no effect
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53310) : error 017: undefined symbol "string"
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53310) : error 017: undefined symbol "string"
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53310) : error 029: invalid expression, assumed zero
    C:\Users\JOACHIM\Desktop\Spiele\Samp Scripts\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(53310) : 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.



    Hoffe auf schnelle Hilfe :)