FilterScripts error - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Miscellaneous (https://forum.sa-mp.nl/forum-4.html) +--- Forum: Gaming (https://forum.sa-mp.nl/forum-27.html) +--- Thread: FilterScripts error (/thread-9060.html) |
FilterScripts error - MoToRoLa - 05-27-2008 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: Code: if(keys==8){ the game freezes and appears objects.part file and only the first var got saved that have me pissed Re: FilterScripts error - Jay - 05-29-2008 Your code is hard to read. You should indent it, and clean it up. Also to fix the command bug in filterscripts, return 0 under OnPlayerCommandText in both filterscripts and gamemodes. I'm not quite sure what your trying to do. All I can see from that code is some bad, Unoptomized file writing for objects. Instead of making about 10 different variables and using a different one for each format statement, you can just use one variable. E.G: Code: new lolz[256]; Instead of: Code: new lolz[256],lolz2[256]; Re: FilterScripts error - MoToRoLa - 05-30-2008 lol ye me ty was too simply may b da day i wrote that i was drunk |