Wuhuu Leute,
Wer mich verfolgt (xD?) weiss bescheid, Ich bin dabei ein Firmensystem zu schreiben.
Ich bin doch mal bei DINI geblieben, habe aber trotzdem Errors:
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2129) : error 029: invalid expression, assumed zero
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2129 -- 2130) : warning 215: expression has no effect
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2130) : error 001: expected token: ";", but found "if"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2133) : error 035: argument type mismatch (argument 2)
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2134) : error 035: argument type mismatch (argument 2)
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2135) : error 035: argument type mismatch (argument 2)
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2136) : error 035: argument type mismatch (argument 2)
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2138) : error 017: undefined symbol "bought"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2139) : error 017: undefined symbol "status"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2124) : warning 203: symbol is never used: "preis"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2124) : warning 203: symbol is never used: "z"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2124) : warning 203: symbol is never used: "y"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2124) : warning 203: symbol is never used: "x"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2151) : error 017: undefined symbol "x"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2151) : warning 213: tag mismatch
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2152) : error 017: undefined symbol "y"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2152) : warning 213: tag mismatch
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2153) : error 017: undefined symbol "z"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2153) : warning 213: tag mismatch
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2154) : error 017: undefined symbol "preis"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2155) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2129 -- 2130) : warning 215: expression has no effect
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2130) : error 001: expected token: ";", but found "if"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2133) : error 035: argument type mismatch (argument 2)
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2134) : error 035: argument type mismatch (argument 2)
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2135) : error 035: argument type mismatch (argument 2)
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2136) : error 035: argument type mismatch (argument 2)
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2138) : error 017: undefined symbol "bought"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2139) : error 017: undefined symbol "status"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2124) : warning 203: symbol is never used: "preis"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2124) : warning 203: symbol is never used: "z"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2124) : warning 203: symbol is never used: "y"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2124) : warning 203: symbol is never used: "x"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2151) : error 017: undefined symbol "x"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2151) : warning 213: tag mismatch
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2152) : error 017: undefined symbol "y"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2152) : warning 213: tag mismatch
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2153) : error 017: undefined symbol "z"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2153) : warning 213: tag mismatch
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2154) : error 017: undefined symbol "preis"
C:\Users\Zinne\Desktop\samp03e_svr_R2_win32\gamemodes\TruckingS.pwn(2155) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
13 Errors.
Zeilen:
stock CreateFirma(Float:x,Float:y,Float:z,preis,besitzer[32])//DAS IST 2124
{
new pfad[50];
for(new i=1;i<MAX_FIRMA;i++)
{
format(pfad,sizeof(pfad),"/Firmen/Firma%d.txt",i);.
if(!dini_Exists(pfad))
{
dini_Create(pfad);
dini_FloatSet(pfad,x,Float:x);
dini_FloatSet(pfad,y,Float:y);
dini_FloatSet(pfad,z,Float:z);
dini_IntSet(pfad,preis,preis);
dini_Set(pfad,besitzer,besitzer);
dini_IntSet(pfad,bought,0);
dini_Set(pfad,status,0);
return LoadFirma(i);
}
}
return 1;
}
stock CreateFirma(Float:x,Float:y,Float:z,preis,besitzer[32])//DAS IST 2124
{
new pfad[50];
for(new i=1;i<MAX_FIRMA;i++)
{
format(pfad,sizeof(pfad),"/Firmen/Firma%d.txt",i);.
if(!dini_Exists(pfad))
{
dini_Create(pfad);
dini_FloatSet(pfad,x,Float:x);
dini_FloatSet(pfad,y,Float:y);
dini_FloatSet(pfad,z,Float:z);
dini_IntSet(pfad,preis,preis);
dini_Set(pfad,besitzer,besitzer);
dini_IntSet(pfad,bought,0);
dini_Set(pfad,status,0);
return LoadFirma(i);
}
}
return 1;
}
stock LoadFirma(Firma)
{
new pfad[50];
format(pfad,50,"/Firmen/Firma%d.txt",Firma);
if(!fexist(pfad))return 0;
FirmInfo[Firma][fX] = dini_Float(pfad,x);
FirmInfo[Firma][fY] = dini_Float(pfad,y);
FirmInfo[Firma][fZ] = dini_Float(pfad,z);
FirmInfo[Firma][fPrice] = dini_Int(pfad,preis);
format(FirmInfo[Firma][fBesitzer],32,"%s",dini_Get(pfad,fBesitzer));//DAS IST 2155
FirmInfo[Firma][fPickup] = CreatePickup(1273,0,FirmInfo[Firma][fX],FirmInfo[Firma][fY],FirmInfo[Firma][fZ],0);
return 1;
}
{
new pfad[50];
format(pfad,50,"/Firmen/Firma%d.txt",Firma);
if(!fexist(pfad))return 0;
FirmInfo[Firma][fX] = dini_Float(pfad,x);
FirmInfo[Firma][fY] = dini_Float(pfad,y);
FirmInfo[Firma][fZ] = dini_Float(pfad,z);
FirmInfo[Firma][fPrice] = dini_Int(pfad,preis);
format(FirmInfo[Firma][fBesitzer],32,"%s",dini_Get(pfad,fBesitzer));//DAS IST 2155
FirmInfo[Firma][fPickup] = CreatePickup(1273,0,FirmInfo[Firma][fX],FirmInfo[Firma][fY],FirmInfo[Firma][fZ],0);
return 1;
}
Bitte um Hilfe ich krieg hier schon nen 9 Jahre-Bart
lg