Beiträge von Sharpadox

    Hey,


    aus langeweille versuche ich eine DM-Race Map zu erstellen..
    Wie kann ich machen, dass die Zeit ab start gezählt wird, und
    wenn er den Hunter erreicht, die Zeit gespeichert wird?

    PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0);

    Meinst du vllt so?


    new str[128], rand;
    if(PlayerInfo[playerid][pBusSkill] == 3) {rand = random(5);}
    if(PlayerInfo[playerid][pBusSkill] == 4) {rand = random(4);}
    if(PlayerInfo[playerid][pBusSkill] == 5) {rand = random(3);}
    if(PlayerInfo[playerid][pBusSkill] == 6) {rand = random(3);}
    if(PlayerInfo[playerid][pBusSkill] == 7) {rand = random(2);}
    format(str,sizeof(str),"Endstation. Du erhältst: 3200$ am nächsten Payday und %i Punkte.",rand);
    PlayerInfo[playerid][pBusPt] += rand;
    SendClientMessage(playerid,0x00FFFFFF,str);

    Danke Leute,


    jetzt geht es :*


    Jetzt noch eine Frage..


    Ich möchte, dass wenn man zB die 1 Linie durchfährt zufällig 1-3 Punkte bekommt.
    Dann wenn er Skill 1 ist nurnoch 1-2 und ab skill 3 nurnoch 1


    //EDIT:


    Ich habe es so versucht aber da bekomme ich Errors:


    new str[128];
    if(PlayerInfo[playerid][pBusSkill] == 0) {new rand = random(3);}
    if(PlayerInfo[playerid][pBusSkill] == 1) {new rand = random(3);}
    if(PlayerInfo[playerid][pBusSkill] == 2) {new rand = random(2);}
    if(PlayerInfo[playerid][pBusSkill] == 3) {new rand = random(1);}
    format(str,sizeof(str),"Endstation. Du erhältst: 2800$ am nächsten Payday und %i Punkte.",rand);
    PlayerInfo[playerid][pBusPt] += rand;
    SendClientMessage(playerid,0x00FFFFFF,str);



    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(4504) : warning 204: symbol is assigned a value that is never used: "rand"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(4505) : warning 204: symbol is assigned a value that is never used: "rand"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(4506) : warning 204: symbol is assigned a value that is never used: "rand"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(4507) : warning 204: symbol is assigned a value that is never used: "rand"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(4508) : error 017: undefined symbol "rand"
    C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(4509) : error 017: undefined symbol "rand"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

    Meinst du so?


    public OnPlayerUpdate(playerid)
    {
    if(PlayerInfo[playerid][pBusPt] >= MaxBusPunkte(playerid))
    {
    new str[128];
    PlayerInfo[playerid][pBusSkill]++;
    PlayerInfo[playerid][pBusPt] = 0;
    format(str,sizeof(str),"Du bist ein Buslevel gestiegen. Nun hast du den Busfahrer Skill %i",PlayerInfo[playerid][pBusSkill]);
    SendClientMessage(playerid,bRot,str);
    return 1;
    }
    return 1;
    }


    stock MaxBusPunkte(playerid)
    {
    new Punkte;
    switch(PlayerInfo[playerid][pBusSkill])
    {
    case 0:{Punkte=25;}
    case 1:{Punkte=50;}
    case 2:{Punkte=75;}
    case 3:{Punkte=100;}
    case 4:{Punkte=125;}
    case 5:{Punkte=150;}
    case 6:{Punkte=175;}
    case 7:{Punkte=200;}
    case 8:{Punkte=225;}
    }
    return Punkte;
    }


    Hey,


    ich arbeite gerade an einem Skill System für meinen Busfahrer Job..
    Nun habe ich es so, dass der Spieler immer wenn er 25 Buspunkte hat, einen Level höher kommt.
    Doch::
    1. Als erstes bekommt er statt Level 1, Level 0
    2. Wie mache ich, dass er erst 25 dann 50 dann 75 usw. Punkte braucht für Skill Up?


    Freue mich auf Hilfe.
    Hier ist der Code für LevelUp momentan


    public OnPlayerUpdate(playerid)
    {
    if(PlayerInfo[playerid][pBusPt] >= 25)
    {
    new str[128];
    PlayerInfo[playerid][pBusSkill]++;
    PlayerInfo[playerid][pBusPt] = 0;
    format(str,sizeof(str),"Du bist ein Buslevel gestiegen. Nun hast du den Busfahrer Skill %i",PlayerInfo[playerid][pBusSkill]);
    SendClientMessage(playerid,bRot,str);
    return 1;
    }
    return 1;
    }

    Boa ich bin auch blöd -.- *schlag sich selbst*


    Habe gerade gaaaaaaaanz unten vom Script das gefunden..


    Was sollte das denn werden??? :cursing:


    public adminzone(playerid)
    {
    SetCameraBehindPlayer(playerid);
    return 1;
    }
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
    index++;
    }


    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
    result[index - offset] = string[index];
    index++;
    }
    result[index - offset] = EOS;
    return result;
    }


    Dümmster Scheiß ever :D
    Die sind garantiert nicht wegen dem You are banned weggeblieben, da dieser Bug langsam jedem bekannt sein sollte der länger als 2 Tage SAMP spielt.


    Nicht wirklich, wenn man zB auf größeren Server spielt, zB Another Life oder so..


    Da kommt sowas nicht gerade "oft" vor ;)

    Das "You are banned from the Server." kann man glaube ich nicht entfernen.
    Eigentlich reicht da neu auf den Server zu connecten. (Reicht jedenfalls bei unserem server)


    Jap, das ist ein Bugg.. Ich habe den auch auf meinem Server, ist ja auch normal.
    Es kommt immer wenn man per Console neu startet.
    Einfaches Reloggen reicht da schon :thumbup:

    Hey,


    wieso kommen diese Errors?
    Ich benutze ein editiertes GPR-Script..
    Fehlt ein Include oder sowas?


    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(6296) : warning 225: unreachable code
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(19620) : error 017: undefined symbol "M_OnPlayerCommandText"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(19630) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(19630) : error 033: array must be indexed (variable "cmd")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20337) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20337) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20371) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20371) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20723) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20723) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20948) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20948) : error 033: array must be indexed (variable "x_nr")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20958) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20958) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20988) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(20988) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21032) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21032) : error 033: array must be indexed (variable "x_nr")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21042) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21042) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21072) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21072) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21211) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21211) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21219) : error 017: undefined symbol "strtok"
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21219) : error 033: array must be indexed (variable "tmp")
    C:\Users\Narushi\Desktop\samp\World-of-San-Andreas-4.0\World of San Andreas 4.0\gamemodes\GNE.pwn(21244) : error 017: undefined symbol "strtok"


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



    26 Errors.