SA-MP Forums Archive
Organization stuff dissapearing. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Organization stuff dissapearing. (/showthread.php?tid=603892)



Organization stuff dissapearing. - iMosquito - 28.03.2016

I got a question,hopefully somebody can help me with this. I'm using a random GM,at the moment I'm getting trouble with "oupdates.amx". I can create an organization,add org marker,name,info,skins,weapons,cars,turfs,etc,but when I restart my server everything is gone,what could be wrong?


Re: Organization stuff dissapearing. - introzen - 28.03.2016

Show us the command where you create the organization, please. Most likely, the database/file that the organization(s) does not exists, hence why it does not load on restart.


Re: Organization stuff dissapearing. - iMosquito - 28.03.2016

Not sure if this is the right code.

Quote:

new string[64];
for (new i = 1, d = dini_Int("orgfiles/o/orgstats.ini", "max_org"); i <= d; i++) {
format(string, 64, "orgfiles/O/ORG%d.ini", i);
if (!dini_Exists(string)) continue;
gatetype[i-1] = dini_Int(string, "gatetype");
}

s1 = CreateObject(1500, 2293.817, 2494.451, 2.360, 0.0, 0.0, 270.0); // sapd

s2 = CreateObject(1500, 1584.140, -1637.850, 12.483, 0.0, 0.0, 180.0); // sapd

// p1 = CreatePickup(356, 19, 2545.418, -1300.735, 1031.421, 255-orgid); // orgid

v1 = CreateVehicle2(435, 1062.8109, 1298.1058, 11.4588, 270.0000, 400);
v2 = CreateVehicle2(435, 1062.8109, 1288.1058, 11.4403, 270.0000, 400);
v3 = CreateVehicle2(435, 1062.8109, 1278.1058, 11.9663, 270.0000, 400);
v4 = CreateVehicle2(435, 1062.8109, 1268.1058, 11.9642, 270.0000, 400);
v5 = CreateVehicle2(435, 1062.8109, 1258.1058, 11.4588, 270.0000, 400);
v6 = CreateVehicle2(435, 1062.8109, 1248.1058, 11.4403, 270.0000, 400);
v7 = CreateVehicle2(435, 1062.8109, 1238.1058, 11.9663, 270.0000, 400);
v8 = CreateVehicle2(435, 1062.8109, 1228.1058, 11.9642, 270.0000, 400);

gtimer = SetTimer("org_gatesF", 500, 1);