Jump to content
  • 0

pomoc drag


-other-Mizi_CZ

Dotaz

sorry že jsem toto psal i na pb.net ale toto forum zrovna nešlo a na pb.net mi stejně nepomohly. takže mám drag od smrtaka a píše mi to toto

C:\DOCUME~1\Kuba\Plocha\GTASA~1\SAMP~1\Pawno\tt.pwn(490) : error 017: undefined symbol "strtok"
C:\DOCUME~1\Kuba\Plocha\GTASA~1\SAMP~1\Pawno\tt.pwn(490) : error 033: array must be indexed (variable "tmp")

 

a když tam dám toto

 

 stock strtok(const string[], &index,seperator=\' \')
{
  new length = strlen(string);
  new offset = index;
  new result[MAX_STRING];
  while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
  {
     result[index - offset] = string[index];
     index++;
  }

  result[index - offset] = EOS;
  if ((index < length) && (string[index] == seperator))
  {
     index++;
  }
  return result;
}

 

tak mi to vyhodí pawno a závorky jsou zprávně nevíte čím to je ?

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0
Guest [*LoNg*]LiFe

asi mas dva krat strtok a ked nie tak vyskusaj ten riadok vymazat a daj tam toto cmd = strtok(cmdtext, idx); a new tmp[256]; a este new cmd[256];

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...