[HELP] I'm stuck with this, don't know how fix - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] I'm stuck with this, don't know how fix (
/showthread.php?tid=82973)
[HELP] I'm stuck with this, don't know how fix -
Diablo1st - 21.06.2009
I have a big problem with a part of my script, i'm making a save system for all the id's of my vehicles but i got it work at 50% i mean some id's save some other not, now i will explain how this work:
I have divided all the Vehicles Models in Groups, there are about 6 vehicles groups so in the save part the first thing is to see what is the vehicle id and model then check in witch group there is the vehicle's model id and at the last the creation of the file
pawn Код:
public SaveSystem(playerid)
{
new idx = LastCar[playerid]; // LastCar is a value that save for each player that store the ID of the last vehicle where the player was in
new j = GetVehicleModel(idx); // here i take the model of the LastCar
//GROUP 1!
if(j==592||j==537||j==538)
{
Save in "GROUPS/1/&d.ini" , idx) // here i save a text file with the name of the Vehicle ID with all the stats in
return 1;
}
// GROUP 2!
else if(j==511||j==577||j==553||j==548||j==417||j==563)
{
Save in "GROUPS/2/&d.ini" , idx) // here i save a text file with the name of the Vehicle ID with all the stats in
return 1;
}
else
{
Save in "GROUPS/3/&d.ini" , idx) // here i save a text file with the name of the Vehicle ID with all the stats in
return 1;
}
return 1;
}
OK it end but with this method i don't know why IT SAVE ONLY THE 1st GROUP all the others don't work, but i don't know WHY i mean logically it's perfect in my opinion.
I really need help i'm going to break my head over a wall i've work/stuck with this since really a lot of time and this system must work
Re: [HELP] I'm stuck with this, don't know how fix -
Diablo1st - 22.06.2009
up
ps: i'm using dini save system
edit: i have fix it, mods can close this topic