Beiträge von [GS]Sn1p3r

    dcmd_ausweisbestellen(playerid,params[]){
    #pragma unused params
    new money = GetPlayerMoney(playerid);
    if(Ausweisbestellt[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "[ ! ]ERROR: Sie haben einen Ausweis schon bestellt !");
    {//1
    if (PlayerToPoint(12.0, playerid,-2764.6489,375.3629,6.3420))
    {//2
    if(PInfo[playerid][Ausweis] == 0){//3
    if(money < 5000){
    SendClientMessage(playerid, COLOR_ERROR, "----Stadt von Las Venturas----");
    SendClientMessage(playerid,COLOR_WHITE,"Es tut uns Leit, Sie haben leider nicht genug Geld");
    SendClientMessage(playerid,COLOR_WHITE,"Preis : 5000$");}
    else if(money >= 5000){
    Ausweisbestellt[playerid] = 1;
    SetTimer("Ausweisbestellen",1000,0);
    GivePlayerMoney(playerid, -5000);
    SendClientMessage(playerid,COLOR_WHITE,"Dein Ausweis wurde bestellt, er wird in 10 Minuten verfügbar sein!");
    return 0;}
    }
    if(PInfo[playerid][Ausweis] == 1){
    return SendClientMessage(playerid,COLOR_ERROR,"Du hast schon einen Ausweis!");
    } else {
    SendClientMessage(playerid,COLOR_WHITE, "Du musst wo anders sein um den Ausweis zu bestellen");}}}
    return 1;}


    was ist daran falsch ?
    0 erros/warnings
    but in game funtz der timer net :/

    forward Money2Score();


    SetTimer("Money2Score",1,1);


    public Money2Score() {
    for(new i=0;i==MAX_PLAYERS;i++) {
    if(IsPlayerConnected(i)) {
    SetPlayerScore(i,GetPlayerMoney(i));
    }
    return 1;
    }
    =
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1355) : error 017: undefined symbol "PlayerToPoint"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1374) : error 079: inconsistent return types (array & non-array)
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1377) : error 029: invalid expression, assumed zero
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1377) : error 004: function "OnPlayerPickUpPickup" is not implemented
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1379) : error 017: undefined symbol "pickupid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1381) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1383) : error 017: undefined symbol "pickupid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1385) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1387) : error 017: undefined symbol "pickupid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1389) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1390) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1390) : error 079: inconsistent return types (array & non-array)
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1391) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1392) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1394) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1395) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1395) : error 079: inconsistent return types (array & non-array)
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1398) : error 079: inconsistent return types (array & non-array)
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1401) : warning 225: unreachable code
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1401) : error 029: invalid expression, assumed zero
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1401) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1402) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1405) : error 017: undefined symbol "row"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1409) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1410) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1411) : error 017: undefined symbol "playerid"
    C:\Users\Amaury\Desktop\german soldier v3.3\gamemodes\rpgv3.3.pwn(1412) : error 017: undefined symbol "playerid"


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.

    lool



    public OnPlayerCommandText(playerid, cmdtext[]){


    if(strcmp(cmdtext,"/pdm",true)==0) {
    SetPlayerInterior(playerid,//ID hier rein nich interior ^^);
    SetPlayerPos(playerid,-2674.1873,1429.0391,906.4609);
    return 1;
    }
    return 0;}


    beispiel



    public OnPlayerCommandText(playerid, cmdtext[]){


    if(strcmp(cmdtext,"/pdm",true)==0) {
    SetPlayerInterior(playerid,5);
    SetPlayerPos(playerid,-2674.1873,1429.0391,906.4609);
    return 1;
    }
    return 0;}

    if(strcmp(cmd, "/robbank", true) == 0)
    {
    if(IsACop(playerid)) {
    SendClientMessage(playerid,COLOR_GREY,"Staatsbeamte dürfen die Bank nicht ausrauben!");
    return 1;
    }
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLocal] != 103)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist nicht in der Bank !");
    return 1;
    }


    new Cops = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    {
    Cops += 1;
    }
    }
    }


    if(Cops < 2)
    {
    SendClientMessage(playerid, COLOR_GREY, " Zurzeit sind keine Cops da.");
    return 1;
    }


    if (!robbs)
    {
    format(string, sizeof(string), " Der Tresor ist leer, versuche es später noch einmal.", (robtimer/30000));
    SendClientMessage(playerid, COLOR_GRAD2, string);
    return 1;
    }


    if(!strlen(tmp))
    {
    new robmoney = random(15000);
    GivePlayerMoney(playerid, robmoney);
    format(string, sizeof(string), "Du hast %d$ aus der Bank geraubt.", robmoney);
    SendClientMessage(playerid,0x005D00FF, string);
    SendClientMessage(playerid, 0x005D00FF,"Alle Sichetheitsbeamten wurden verständigt. Hau schnell ab!");
    WantedPoints[playerid]+=10; SetPlayerCriminal(playerid,255, "Bankraub!");
    SendClientMessage(playerid, COLOR_YELLOW, "Überwachungs Kameras haben dich aufgenommen"); }
    SetTimer("robbson", robtimer, 0);robbs = 0;
    return 1;
    }



    return 1;
    }


    sry Schreibfehler :D