^^ wer ist erster xDD

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • hallo also ich wollte häuser in meinem server haben die man kaufen und vk kann :D und da habe ich KIHC benützt :D habe auch #include <KIHC> benützt aber da kamm ein eror raus C:\Programme\Rockstar Games\pawno\include\KIHC.inc(7) : fatal error 100: cannot read from file: "struct" #define ROT ist {7} #include <a_samp>
    #include <ocmd>
    #include <dini>
    #include <KIHC>


    #define BLAU 0x0087FFFF
    #define ROT 0xE10000FF



  • #include <a_samp>
    #if defined struct
    #endinput
    #endif
    #define struct
    forward setDS(...);
    forward getDS(tostring[],...);
    forward isDS(...);


    /*
    native setDS(...);
    native getDS(tostring[],...);
    native isDS(...);
    */


    #define MAX_STRUCT 30


    public setDS(...)
    {
    new read[256];
    if(!fexist("data.txt"))
    {
    fclose(fopen("data.txt",io_write));
    }


    new string[256];
    for( new arg = 0;arg < numargs()-1;arg++)
    {
    new thisarg[MAX_STRUCT];
    for(new i = 0;i < MAX_STRUCT;i++) thisarg[i] = getarg(arg,i);
    strins(string,thisarg,strlen(string));
    strins(string,":",strlen(string));
    }


    if(!fexist("data.txt")) return 0;
    new File:h = fopen("temp",io_write);
    new File:h2 = fopen("data.txt",io_read);
    while(fread(h2,read))
    {
    if(strcmp(read,string,true,strlen(string)))
    {
    fwrite(h,read);
    }
    }
    fclose(h2);
    fclose(h);
    h = fopen("temp",io_read);
    h2 = fopen("data.txt",io_write);
    while(fread(h,read))
    {
    fwrite(h2,read);
    }
    fclose(h);
    fclose(h2);
    fremove("temp");
    format(string,256,"");
    for( new arg = 0;arg < numargs();arg++)
    {
    new thisarg[MAX_STRUCT];
    for(new i = 0;i < MAX_STRUCT;i++) thisarg[i] = getarg(arg,i);
    strins(string,thisarg,strlen(string));
    strins(string,":",strlen(string));
    }

    h = fopen("data.txt",io_append);
    strins(string,"\r\n",strlen(string));
    fwrite(h,string);
    fclose(h);
    return 1;
    }


    public getDS(tostring[],...)
    {
    format(tostring,1,"\0");
    if(!fexist("data.txt")) return 0;
    new string[256];
    for( new arg = 1;arg < numargs();arg++)
    {
    new thisarg[MAX_STRUCT];
    for(new i = 0;i < MAX_STRUCT;i++) thisarg[i] = getarg(arg,i);
    strins(string,thisarg,strlen(string));
    strins(string,":",strlen(string));
    }
    new File:h = fopen("data.txt",io_read);
    while(fread(h,tostring,256))
    {
    if(strcmp(tostring,string,false,strlen(string))==0)
    {
    strdel(tostring,0,strlen(string));
    strdel(tostring,strfind(tostring,":"),strlen(tostring));
    return 1;
    }
    }
    fclose(h);
    format(tostring,1,"\0");
    return 0;
    }


    public isDS(...)
    {
    if(!fexist("data.txt")) return 0;
    new string[256];
    for( new arg = 0;arg < numargs();arg++)
    {
    new thisarg[MAX_STRUCT];
    for(new i = 0;i < MAX_STRUCT;i++) thisarg[i] = getarg(arg,i);
    strins(string,thisarg,strlen(string));
    strins(string,":",strlen(string));
    }
    new File:h = fopen("data.txt",io_read);
    new read[256];
    while(fread(h,read))
    {
    if(strcmp(read,string,false,strlen(string))==0) return 1;
    }
    fclose(h);
    return 0;
    }
    /* by Kapil */


    einfach damit eine neue inc datei erstellen dan solltes es gehen ;)

  • C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(50) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(109) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(115) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(119) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(125) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(129) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(133) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(140) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(187) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\dini.inc(214) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\pawno\include\KIHC.inc(687) : warning 201: redefinition of constant/macro (symbol "OnPlayerCommandText")
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(666) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(745) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(863) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(1070) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(1085) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2020) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2633) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2740) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2815) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2820) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2823) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2834) : warning 219: local variable "key" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2837) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2857) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(2888) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(3094) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(3197) : error 021: symbol already defined: "strtok"
    C:\Users\Fabian\Desktop\Samp\gamemodes\Script.pwn(3212) : error 047: array sizes do not match, or destination array is too small
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


  • Was hat das mit dem Thema zu tun?


    Dir fehlt einfach nur die Datei, das wars.

    Greetz,
    LuX

  • nein mir fehlt keine datei!
    Das kommt wenn die ,inc datei drinne ist!

    Da steht das er die Datei nicht Lesen kann. DAS bedeutet er hat es nicht im ordner schlaukopf

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen