Hello There, Guest! Login or Register


FilterScripts error
#2
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];
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);
Reply


Messages In This Thread
FilterScripts error - by Motorola - 05-27-2008, 11:03 PM
Re: FilterScripts error - by Jay - 05-29-2008, 11:10 AM
Re: FilterScripts error - by Motorola - 05-30-2008, 12:53 AM