05-29-2008, 11:10 AM
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:
Instead of:
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];
format(lolz,256,"Hai, U ARE GAY, %d",GayCount);
SendClientMessage(playerid,color_whatever,lolz);
format(lolz,256,"Hai, You are also Gay too, %d.",SomeOtherGayCountVariableOrW/e");
SendClientMessage(playerid,color_whatever,lolz);Instead of:
Code:
new lolz[256],lolz2[256];
format(lolz,256,"Hai, U ARE GAY, %d",GayCount);
SendClientMessage(playerid,color_whatever,lolz);
format(lolz2,256,"Hai, You are also Gay too, %d.",SomeOtherGayCountVariableOrW/e");
SendClientMessage(playerid,color_whatever,lolz2);