hi
well i have a big game mode of like 7000 lines, but i wanted to create some cool things, so i made a cool object creator system, it worked perfectly when it was as filterscript, then i noticed i couldnt use a lot of commands, so odd, then i passed the code to da gamemode, i run it, but in this step all fucks up:
the game freezes and appears objects.part file and only the first var got saved that have me pissed
well i have a big game mode of like 7000 lines, but i wanted to create some cool things, so i made a cool object creator system, it worked perfectly when it was as filterscript, then i noticed i couldnt use a lot of commands, so odd, then i passed the code to da gamemode, i run it, but in this step all fucks up:
Code:
if(keys==8){
format(obj,sizeof(obj),"%d,%f,%f,%f,%f,%f,%f",gCreator[n],x,y,z,mx,my,mz);
for(new r=0;r<100;r++){
format(txt,sizeof(txt),"obj%d",r);
data = dini_Int(udb_encode("Objects"), txt);
if(data==0){
format(nam1,sizeof(nam1),"objectid%d",r);
format(nam2,sizeof(nam2),"x%d",r);
format(nam3,sizeof(nam3),"y%d",r);
format(nam4,sizeof(nam4),"z%d",r);
format(nam5,sizeof(nam5),"mx%d",r);
format(nam6,sizeof(nam6),"my%d",r);
format(nam7,sizeof(nam7),"mz%d",r);
dini_IntSet(udb_encode("Objects"),nam1,gCreator[n]);
dini_IntSet(udb_encode("Objects"),txt,1);
dini_FloatSet(udb_encode("Objects"),nam2,x);
dini_FloatSet(udb_encode("Objects"),nam3,y);
dini_FloatSet(udb_encode("Objects"),nam4,z);
dini_FloatSet(udb_encode("Objects"),nam5,mx);
dini_FloatSet(udb_encode("Objects"),nam6,my);
dini_FloatSet(udb_encode("Objects"),nam7,mz);
r=401;
CreateObject(gCreator[n],x,y,z,mx,my,mz);
}
}
DestroyPlayerObject(n,gCreator[n]);
gCreator[n]=-1;
SendClientMessage(n,COLOR_RED,"You Created a new perm-object");
SpawnPlayer(n);
the game freezes and appears objects.part file and only the first var got saved that have me pissed