Beiträge von [MR]Chicko aka. Eazyline

    Habe es jetzt mal so gemacht:


    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"playerid",true))
    {
    SetSpawnInfo(playerid,0,205,376.0649,-65.4647,1001.5078,177.8031,0,0,0,0,0,0);
    /*Attach3DTextLabelToPlayer(Sabine,playerid,0.0,0.0,0.45);*/
    SetPlayerSkin(playerid,246);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1185.7820,-932.1617,43.0169);
    SetPlayerFacingAngle(playerid,177.8031);
    return 1;
    }


    Trozdem immer noch der gleiche fehler.

    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"Sabine",true))
    {
    SetSpawnInfo(playerid,0,205,376.0649,-65.4647,1001.5078,177.8031,0,0,0,0,0,0);
    /*Attach3DTextLabelToPlayer(Sabine,playerid,0.0,0.0,0.45);*/
    SetPlayerSkin(playerid,246);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1185.7820,-932.1617,43.0169);
    SetPlayerFacingAngle(playerid,177.8031);
    return 1;
    }



    @GangsteR08:


    Es ist auf dem Homeserver und auf meinem Rootserver so ;(

    Hallo Community,


    ich habe ein rießen Problem! Ich bin solangsam richtig am verzweifeln.
    Und zwar habe ich folgendes Problem in meinem Script:


    - Wenn man sich registriert oder einloggt, dann spawne ich in der Luft. Also ich fliege vom Himmel hinunter und spawne erst ca. nach dem ich 2 oder 3 mal aus dem Himmel gefallen bin!!!!????
    Das Script hat keine Errors oder Warnings!


    Weiß hier vielleicht jemand woran das liegt?

    Liebe Grüße,


    Eazyline


    EDIT:// Rechtschreibfehler verbessert 8|

    if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) //Terroristen
    {
    SetPlayerPos(playerid,-308.6024,1303.7479,53.6643);
    SetPlayerFacingAngle(playerid,270.3801);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid,0);
    return 1;


    Übernimm das, dann müsste es gehen.


    //EDIT: Sorry was vergessen zu entfernen :O

    Ja ehm. danke für deine Hilfe, nur.. ich bin noch ein Anfänger im Scripten, wie kann ich das umschreiben in ein normales CMD?

    Sehr geehrte Breadfish Community,


    hab mal wieder eine Frage und zwar wollte ich in mein GF Edit ein Commando einbauen, was uns das Antworten einem Report erleichtert. Und zwar sollte man mit einem Commando den Report beantworten können z.B mit: /aw ID
    Der User sollte dann die Report Antwort hinzugeflüstert werden, aber der Admin sollte einen Hinweis bekommen das der Report beantwortet wurde. Sodass kein Missverständniss auftaucht.


    Wie kann ich das ganze machen?


    Liebe Grüße
    Eazyline


    //EDIT: Rechtschreibfehler verbessert.

    Code
    Warning:  mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 6 in /home/grex/www/index.php on line 198
     
     Warning:  mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 6 in /home/grex/www/index.php on line 203


    Bekomme keine Mail.


    Ansonsten 8/10.
    Am Design könnte man noch Arbeiten ;D

    Sorry bin noch ein richtiger Noob im Scripten.


    Also du meinst:


    public OnPlayerRegister(playerid, password[])
    {
    if(IsPlayerConnected(playerid))
    {
    new string3[32];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {


    Also soll ich es darunter setzen?

    public OnPlayerRegister(playerid, password[])
    {
    if(IsPlayerConnected(playerid))
    {
    new string3[32];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "%s.ini", playername3);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
    new var[32];
    format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
    PlayerInfo[playerid][pCash] = PlayerMoney[playerid];
    format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
    format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
    format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
    format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
    format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
    format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
    format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
    format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
    format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
    format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
    format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
    format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
    format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
    format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
    format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
    format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
    format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
    format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
    format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
    format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
    format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
    format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
    format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
    format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
    format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
    format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
    format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
    format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
    format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
    format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
    format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
    format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
    format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
    format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
    format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
    format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
    format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
    format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
    format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
    format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
    format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
    format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
    format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
    format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
    format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
    format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
    format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
    PlayerInfo[playerid][pHealth] = Health[playerid];
    format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
    format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
    format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
    format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
    format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
    format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
    format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
    format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
    if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))


    Du meinst wohl hier?
    Wenn ja, ich kann hier nichts finden was ich auf 0 setzen soll.

    Hallo Community,


    ich hab ein kleines Problem mit meinem Script. Wenn sich ein Spieler registriert, dann hat er automatisch einen Job.
    Nun möchte ich euch Fragen: Wie kann ich dies im Script ändern?
    Die JOB ID: 16 = Trucker ( Diesen Job bekommt der Spieler bei der Registration )


    Ich danke im Vorraus für eure zahlreichen Hilfen.


    Liebe Grüße
    Eazyline

    Also z.B Am BSN:


    if(dialogid == 40) //restaurant - burger shot north
    {
    if(response)
    {
    new Float:health; GetPlayerHealth(playerid, health);
    if(BizzInfo[restaurant][bProducts] <= 0)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Das Essen ist ausverkauft.");
    TogglePlayerControllable(playerid, 1);
    return 1;
    }
    if(listitem == 0) //hamburger
    {
    if(health > 100)
    {
    return 1;
    }
    PlayerMoney[playerid] = PlayerMoney[playerid] -= 5;
    SetPlayerHealth(playerid, health+5);
    Health[playerid] += 5;
    SendClientMessage(playerid, COLOR_BURGER, "Burger Shot North: Danke für deinen Einkauf. Einen schönen Tag noch.");
    BizzInfo[restaurant][bProducts] -= 1;
    BizzInfo[restaurant][bTill] += 5;
    SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
    TogglePlayerControllable(playerid, 1);
    return 1;
    }


    Sorry habe nicht soviel erfahrungen im Thema Scripten. Weiß jetzt nicht ob es das ist was ihr meint.