PDA

View Full Version : Help, args



maxdamage99
15th April 2015, 14:57
CodeCallback_PlayerCommand(args)
{
for(i=0; i<args.size; i++)
args = fixChatArgs(args);
}

script args.
The first line is needed?

for(i=0; i<args.size; i++)
If this line is present, the server generates an error "infinite loop" and server lag, and do not work console variables such as: "/+scores" "/kill".
I do not see what that array to which it belongs, and without this line everything works in perfect order!

IzNoGoD
15th April 2015, 15:40
dont use a loop to fix an array when said loop loops over said array.