Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function LoadStuff()
- {
- new arrCoords[7][64];
- new strFromFile2[256];
- new File: file = fopen("stuff.ini", io_read);
- if (file)
- {
- fread(file, strFromFile2);
- split2(strFromFile2, arrCoords, ',');
- Jackpot = strval(arrCoords[0]);
- Tax = strval(arrCoords[1]);
- TaxValue = strval(arrCoords[2]);
- Security = strval(arrCoords[3]);
- PayDayTeiler = strval(arrCoords[4]);
- LSAWaren = strval(arrCoords[5]);
- FarmerDrogen = strval(arrCoords[6]);
- fclose(file);
- if(Security == 0)
- {
- }
- else
- {
- GameModeExit();
- }
- }
- else
- {
- GameModeExit(); // hier der Crash
- }
- return 1;
- }
- Function LoadFrakDrugs()
- {
- new arrCoords[14][64];
- new strFromFile2[256];
- new File: file = fopen("FrakDrugs.ini", io_read);
- if (file)
- {
- fread(file, strFromFile2);
- split2(strFromFile2, arrCoords, ',');
- LCNDrugs = strval(arrCoords[0]);
- YakDrugs = strval(arrCoords[1]);
- TriadDrugs = strval(arrCoords[2]);
- GroveDrugs = strval(arrCoords[3]);
- BallasDrugs = strval(arrCoords[4]);
- BikerDrugs = strval(arrCoords[5]);
- VagosDrugs = strval(arrCoords[6]);
- AztecaDrugs = strval(arrCoords[7]);
- RSDrugs = strval(arrCoords[8]);
- TerrorDrugs = strval(arrCoords[9]);
- BrigadaDrugs = strval(arrCoords[10]);
- HitmanDrugs = strval(arrCoords[11]);
- SFRifaDrugs = strval(arrCoords[12]);
- WHDrugs = strval(arrCoords[13]);
- fclose(file);
- }
- else
- {
- printf("FRAKDRUGS.INI FEHLT");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement