Beiträge von Fabi.StaR

    Ihr der befehl :


    ocmd:stats(playerid,params[])
    {
    new stat[64],strin[25],strin0[25],strin1[25],string[250],string0[250],stringzu[2000],string1[250],string2[250],string3[250],string4[250],strin2[60],string5[250],string6[250],strin3[60],string7[250];
    format(stat, sizeof(stat), "Stats von %s", PlayerName(playerid));
    format(strin,sizeof(strin),"[[Account]]");
    format(string,sizeof(string),"Level:[%i] Geschlecht:[] Alter:[%i] Spawnenergie:[] Geld:[$%i] Bank:[] Tel.:[]",GetPlayerScore(playerid),PlayerInfo[playerid][pAlter],GetPlayerMoney(playerid));
    format(string0,sizeof(string0),"Accounttyp:[] Ehe:[]] Spielzeit:[] Respekt:[%i] NextLevel:[] ",PlayerInfo[playerid][pRespektPunkte]);
    format(string1,sizeof(string1),"Verwarnung:[] Invitesperre:[] Minuten seit Payday:[%i/60]",PlayerInfo[playerid][pPayDayTime]);
    format(strin0,sizeof(strin0),"[[Beruf]]");
    format(string2,sizeof(string2),"Team:[%s] Orgnisation:[] Rang:[%i] Job:[%s]",fraktname(playerid),PlayerInfo[playerid][pFraktionsRange],JobName(playerid));
    format(strin1,sizeof(strin1),"[[Besitz]]");
    format(string3,sizeof(string3),"Materialien:[%i] Drogen:[] SafeMats:[%i] SafeDrugs:[] HäckingCodes:[] Illigale Fische:[]",PlayerInfo[playerid][pMats],PlayerInfo[playerid][pSaveMats]);
    format(string4,sizeof(string4),"Fischrekord:[] LottoNr:[] Kondome:[] Zigarren:[] EventItems:[] Krankenkasse:[]");
    format(strin2,sizeof(strin2),"[[Verbrechen]]");
    format(string5,sizeof(string5),"Kills(DM):[%i(%i)] Tode:[] WantedLevel:[%i] Verbrechen:[] Gefängniszeit:[]",PlayerInfo[playerid][pKills],PlayerInfo[playerid][pWantedLevel]);
    format(string6,sizeof(string6),"WantedTode:[] DM-Rate:[]");
    format(strin3,sizeof(strin3),"[[Zustand]]");
    format(string7,sizeof(string7),"Healht:[] Trunkenheitslevel:[] Krankheit:[]");
    format(stringzu,sizeof(stringzu)," %s \n %s \n %s \n %s \n\n %s \n %s \n\n %s \n %s \n %s \n\n %s \n %s \n %s \n\n %s \n %s",strin,string,string0,string1,strin0,string2,strin1,string3,string4,strin2,string5,string6,strin3,string7);
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,stat,stringzu,"okay","");
    return 1;
    }

    public PayDayTime()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(!IsPlayerConnected(i)) continue;
    {
    if(GetPVarInt(i,"Eingeloggt")==0)continue;
    {
    PlayerInfo[i][pPayDayTime]+=1;
    if(PlayerInfo[i][pPayDayTime]=60)
    {
    PlayerInfo[i][pPayDayTime]=0;
    PlayerInfo[i][pRespektPunkte]+=1;
    }
    }
    }
    }
    return 1;
    }

    PHP
    C:\Users\Patrick\Desktop\Killing Town\gamemodes\Safemade.pwn(160) : warning 217: loose indentation
    C:\Users\Patrick\Desktop\Killing Town\gamemodes\Safemade.pwn(160) : error 029: invalid expression, assumed zero
    C:\Users\Patrick\Desktop\Killing Town\gamemodes\Safemade.pwn(160) : error 004: function "PayDayTime" is not implemented
    C:\Users\Patrick\Desktop\Killing Town\gamemodes\Safemade.pwn(169) : warning 211: possibly unintended assignment
    C:\Users\Patrick\Desktop\Killing Town\gamemodes\Safemade.pwn(183) : warning 225: unreachable code
    C:\Users\Patrick\Desktop\Killing Town\gamemodes\Safemade.pwn(183) : warning 217: loose indentation


    wie bekomme ich die weg?

    Warning:
    tag mismatch


    der stock:
    stock mysql_GetFloat(Table[], Field[], Where[], Is[])
    {
    new query[128], Float:sqlfloat;
    mysql_real_escape_string(Table, Table);
    mysql_real_escape_string(Field, Field);
    mysql_real_escape_string(Where, Where);
    mysql_real_escape_string(Is, Is);
    format(query, 128, "SELECT `%s` FROM `%s` WHERE `%s` = '%s'", Field, Table, Where, Is);
    mysql_query(query);
    mysql_store_result();
    mysql_fetch_float(sqlfloat);
    mysql_free_result();
    return sqlfloat;// Diese Zeile
    }


    Help me pls

    Warum geht dieser Befehl nicht??


    ocmd:materialien(playerid,params[])
    {
    new aktion[20],string[128],string0[128];
    if(PlayerInfo[playerid][pJob] == 9)
    {
    if(sscanf(params,"s",aktion))
    {
    SendClientMessage(playerid,Gelb,"[Benutze]: /materialien [arten]");
    SendClientMessage(playerid,Gelb,"[Art]: deliver");
    SendClientMessage(playerid,Gelb,"[Art]: get [Anzahl(maximal 10)]");
    }
    if(!strcmp(aktion, "deliver", true))
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,2471.1499,1905.8556,9.8582))
    {
    format(string,sizeof(string),"Du hast %i Pakete gegen %i Mats Auf der Baustelle eingelöst.",PlayerInfo[playerid][pPackete],PlayerInfo[playerid][pPackete]*50);
    PlayerInfo[playerid][pMats] += PlayerInfo[playerid][pPackete]*50;
    PlayerInfo[playerid][pPackete] = 0;
    SendClientMessage(playerid,Gelb,string);
    }
    else
    {
    SendClientMessage(playerid,adminrot," Du bist nicht am MatsPoint LV!");
    }
    }
    else if(!strcmp(aktion, "get", true))
    {
    new packete,preis;
    if(IsPlayerInRangeOfPoint(playerid,10.0,-1111.4364,-1621.0780,76.3672))
    {
    if(sscanf(params,"sd",aktion,packete)) return SendClientMessage(playerid,adminrot,"[Benutze] /materialien get [Anzahl(maximal 10)]");
    if(packete <=10)
    {
    preis = packete*250;
    GivePlayerMoney(playerid, -preis);
    PlayerInfo[playerid][pPackete] += packete;
    format(string0,sizeof(string0),"[Info]: Du hast die %i pakete für $%i gekauft.",packete,preis);
    SendClientMessage(playerid,Gelb,string0);
    }
    else
    {
    SendClientMessage(playerid, 0x910000FF,"Sie können maximal 10 Packete kaufen!");
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist kein Waffenhändler!");
    }
    return 1;
    }

    Du kannst es auch einfach so machen:
    stock StartBonus(playerid)
    {
    GivePlayerMoney(playerid,50000);
    SetPlayerScore(playerid,3);
    PlayerInfo[playerid][pSkin]=101;
    SetPlayerWantedLevel(playerid,0);
    SavePlayer(playerid);
    return 1;
    }


    und dann beim register
    starbonus(playerid);

    Kann mir jemand sagen warum dieser Befehle nicht gehen???


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mats einlösen", cmdtext, true, 10) == 0)
    {
    if(PlayerInfo[playerid][pJob] == 9)
    {
    new packete;
    if(IsPlayerInRangeOfPoint(playerid,4.0,2471.1797,1905.8989,9.8582))
    {
    if(PlayerInfo[playerid][pPackete] > 0)
    {
    new string[128];
    format(string,sizeof(string),"Sie haben %i Packete in %i Mats eingelöst auf der Bausteelle umgetauscht.", PlayerInfo[playerid][pPackete],PlayerInfo[playerid][pPackete]*50);
    PlayerInfo[playerid][pMats] = packete*50;
    PlayerInfo[playerid][pPackete] = 0;
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist nicht am Matspoint LV!");
    }
    }
    else
    {
    return SendClientMessage(playerid,Rot,"Du bist kein Waffenhändler!");
    }
    }
    return 0;
    }