Using too much CPU...Need help :(
#4

print variable? I've got certain thins like. When someone spawns it alerts admins, and it says print(string);

Not sure what you mean though, i've never really used "print" that much.


For the array thing, this is jsut one fo the problems.

pawn Код:
new string[128];
  new idx;
  string = strtok(cmdtext, idx); //Line with error (array sizes do not match, or destination array is too small)

  new tmp[64];
  tmp = strtok(cmdtext, idx);//Line with error (array sizes do not match, or destination array is too small)
The others are on a line wherever 'tmp = strtok(cmdtext, idx);' is present.

They work fine when i change it to 256, but i dont want it that high for things so small.
Reply


Messages In This Thread
Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 13:59
Re: Using too much CPU...Need help :( - by KnooL - 23.02.2009, 14:27
Re: Using too much CPU...Need help :( - by Nero_3D - 23.02.2009, 14:31
Re: Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 14:53
Re: Using too much CPU...Need help :( - by x-cutter - 23.02.2009, 15:01
Re: Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 15:41
Re: Using too much CPU...Need help :( - by Nero_3D - 23.02.2009, 16:20
Re: Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 16:28
Re: Using too much CPU...Need help :( - by Joe Staff - 23.02.2009, 16:49
Re: Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)