Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock AHLaden()
- {
- new anzahl;//zählt die AutoHäuser die geladen Werden
- for(new a=0;a<sizeof AHausInfo;a++)
- {
- format(datei,sizeof datei,ahvz,a);// formatier das verzeichnis mit der autohausID als ein string
- if(dini_Exists(datei))// wenn die datei mit dem name AutoHausNrXY vorhanden ist
- {
- // Werden die Werde aus der Datei der Variablen zugewiesen
- anzahl++;
- format(AHausInfo[a][AHName],46,dini_Get(datei,"AutohausName"));
- AHausInfo[a][AHPos][0]=dini_Float(datei,"AutohausPosX");
- AHausInfo[a][AHPos][1]=dini_Float(datei,"AutohausPosY");
- AHausInfo[a][AHPos][2]=dini_Float(datei,"AutohausPosZ");
- AHausInfo[a][AHSchloss]=dini_Int(datei,"AutohausSchloss");
- AHausInfo[a][AHKasse]=dini_Int(datei,"AutohausKasse");
- UpdateAH(a,"all");
- }
- }
- if(anzahl>0){printf("[Dr.Pawn Fahrzeug Script][Autohäuser]Es konnten %i Autohäuser geladen werden.",anzahl);}
- else {print("[Dr.Pawn Fahrzeug Script][Autohäuser]Es konnten keine Autohäuser geladen werden.");}
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment