Beiträge von Russenplayer

    Es wird auf 1 gestellt bei der stock funktion für das erstellen


    stock ErstelleTankstelle(Float:TX,Float:TY,Float:TZ){ new Tankstellendatei[64]; for(new i = 1; i <MAX_TANKSTELLEN; i++) { format(Tankstellendatei,64,"/Tankstellen/%d.txt",i); if(!fexist(Tankstellendatei)) { dini_Create(Tankstellendatei); dini_FloatSet(Tankstellendatei,"Position:X",TX); dini_FloatSet(Tankstellendatei,"Position:Y",TY); dini_FloatSet(Tankstellendatei,"Position:Z",TZ); dini_IntSet(Tankstellendatei,"TankstellenPreis",300000); dini_IntSet(Tankstellendatei,"BenzinPreis",1); dini_IntSet(Tankstellendatei,"Liter",1000); dini_Set(Tankstellendatei,"Besitzer","Staat"); dini_IntSet(Tankstellendatei,"t_erstellt",1); return LadeTankstellen(i); } } return 1;}




    Hat sich erledigt :)

    Wie oben steht wird bei mir das 3D Text Label nicht erstellt.



    stock LadeTankstellen(TankstellenID)
    {
    new Tankstellendatei[64];
    format(Tankstellendatei,sizeof(Tankstellendatei),"/Tankstellen/%d.txt",TankstellenID);
    if(!fexist(Tankstellendatei))return 0;
    TInfo[TankstellenID][tx] = dini_Float(Tankstellendatei,"Pos:x");
    TInfo[TankstellenID][ty] = dini_Float(Tankstellendatei,"Pos:y");
    TInfo[TankstellenID][tz] = dini_Float(Tankstellendatei,"Pos:z");
    TInfo[TankstellenID][t_preis] = dini_Int(Tankstellendatei,"TankstellenPreis:");
    TInfo[TankstellenID][b_preis] = dini_Int(Tankstellendatei,"BenzinPreis");
    TInfo[TankstellenID][t_liter] = dini_Int(Tankstellendatei,"Liter"); TInfo[TankstellenID][t_erstellt] = dini_Int(Tankstellendatei,"t_erstellt");
    format(TInfo[TankstellenID][besitzer],28,"%s",dini_Get(Tankstellendatei,"Besitzer:"));
    if(TInfo[TankstellenID][t_erstellt] == 1)
    {
    new string[256];
    format(string,sizeof(string),"|| Tankstelle ||\n|| Preis: $%d ||\n|| Preis(1Liter): $%d ||\n|| Besitzer: %s ||\n|| Liter: %s/1000",TInfo[TankstellenID][t_preis],TInfo[TankstellenID][b_preis],TInfo[TankstellenID] [besitzer],TInfo[TankstellenID][t_liter]);
    TInfo[TankstellenID][t_label] = Create3DTextLabel(string,COLOR_WHITE,TInfo[TankstellenID][tx],TInfo[TankstellenID][ty],TInfo[TankstellenID][tz],25.0,0);
    }
    else
    {
    }
    return 1;
    }


    Brauche Hilfe im Ordner werden die Sachen erstellt und gespeichert das einzige Problem ist das die 3D texte nicht geladen werden....

    wenn ich mein Script mit deinem M_Bot Compile



    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(3063) : error 021: symbol already defined: "Text"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(5079) : error 017: undefined symbol "StripNewLine"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(5294) : error 017: undefined symbol "StripNewLine"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(8568) : error 017: undefined symbol "M_OnPlayerDeath"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(16401) : error 017: undefined symbol "CreateProgressBar"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(16401) : warning 213: tag mismatch
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(16623) : error 033: array must be indexed (variable "Text")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(16623) : warning 213: tag mismatch
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(16630) : error 033: array must be indexed (variable "Text")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(16630) : warning 213: tag mismatch
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(16637) : error 033: array must be indexed (variable "Text")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(16637) : warning 213: tag mismatch
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(29345) : error 017: undefined symbol "Time"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(29347) : error 017: undefined symbol "Time"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(30176) : error 017: undefined symbol "strtok"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(30176) : error 033: array must be indexed (variable "cmd")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(30301) : error 017: undefined symbol "strtok"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(30301) : error 033: array must be indexed (variable "tmp")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(30977) : error 017: undefined symbol "strtok"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(30977) : error 033: array must be indexed (variable "x_nr")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(30987) : error 017: undefined symbol "strtok"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(30987) : error 033: array must be indexed (variable "tmp")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(31017) : error 017: undefined symbol "strtok"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(31017) : error 033: array must be indexed (variable "tmp")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(31061) : error 017: undefined symbol "strtok"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(31061) : error 033: array must be indexed (variable "x_nr")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(31071) : error 017: undefined symbol "strtok"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(31071) : error 033: array must be indexed (variable "tmp")
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(31101) : error 017: undefined symbol "strtok"
    C:\Users\Alex\Dropbox\gamemodes\samp.PWN(31101) : error 033: array must be indexed (variable "tmp")


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



    26 Errors.

    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(394) : error 029: invalid expression, assumed zero
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(394) : error 001: expected token: ")", but found ";"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(397) : error 009: invalid array size (negative, zero or out of bounds)
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(397) : error 029: invalid expression, assumed zero
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(397) : warning 215: expression has no effect
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(397) : error 017: undefined symbol "ammo"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(397) : fatal error 107: too many error messages on one line


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


    6 Errors.



    Zeile (394) for(new playerid=0; playerid<GetMaxPlayers(); playerid++)


    Zeile (397) new admstring[128], playername[MAX_PLAYER_NAME], weapon = -1, ammo = 0;

    Habe jetzt nur noch 6 Erros



    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(389) : error 017: undefined symbol "GetMaxPlayers"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(390) : error 017: undefined symbol "IsPlayerConnected"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(392) : error 009: invalid array size (negative, zero or out of bounds)
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(392) : error 029: invalid expression, assumed zero
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(392) : error 017: undefined symbol "weapon"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(392) : fatal error 107: too many error messages on one line


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



    6 Errors.


    Die ganzen Problem Zeilen



    for(new playerid=0; playerid<GetMaxPlayers(); playerid++)
    if(IsPlayerConnected(playerid))
    {
    new admstring[128], playername[MAX_PLAYER_NAME], weapon = -1, ammo = 0;

    public Check()
    {
    for(new playerid=0; playerid<GetMaxPlayers(); playerid++)
    if(IsPlayerConnected(playerid))
    {
    new admstring[128], playername[MAX_PLAYER_NAME], weapon = -1, ammo = 0; //Problem Zeile
    GetPlayerName(playerid,playername,sizeof(playername));
    GetPlayerHealth(playerid,GettedHealth);
    GetPlayerArmour(playerid,GettedArmour);
    GetPlayerPos(playerid,M_Bot[playerid][PXpos2],M_Bot[playerid][PYpos2],M_Bot[playerid][PZpos2]);
    //distance = (((M_Bot[playerid][PXpos2]-M_Bot[playerid][PXpos])*(M_Bot[playerid][PXpos2]-M_Bot[playerid][PXpos]))+((M_Bot[playerid][PYpos2]-M_Bot[playerid][PYpos])*(M_Bot[playerid][PYpos2]-M_Bot[playerid][PYpos])))/100;


    new differenz = (GetPlayerMoney(playerid) - M_Bot[playerid][PMoney]);
    if(differenz >= 4490)
    {




    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(388) : error 017: undefined symbol "MAX_PLAYER_NAME"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(388) : error 029: invalid expression, assumed zero
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(388) : error 017: undefined symbol "weapon"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(388) : fatal error 107: too many error messages on one line

    bekomme diese erros bei der Problem Zeile

    Habe in meinem M_Bot.inc 7 Erros drinnen weis aber nicht wie ich sie raus bekommen soll



    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(354) : warning 216: nested comment
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(378) : error 010: invalid function or declaration
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(381) : warning 235: public function lacks forward declaration (symbol "Check")
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(388) : error 017: undefined symbol "GettedHealth"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(389) : error 017: undefined symbol "GettedArmour"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(390) : error 017: undefined symbol "M_Bot"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(390) : warning 215: expression has no effect
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(390) : error 001: expected token: ";", but found "]"
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(390) : error 029: invalid expression, assumed zero
    C:\Users\Alex\Dropbox\pawno\include\M_Bot.inc(390) : fatal error 107: too many error messages on one line


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



    7 Errors.


    Danke im Vorauß


    MFG AL3X :thumbup: