Errwut
#1

I recently took over a scripting position for a server, and I'd like to work with strtok to do commands. Problem is, I can't add strtok because it gives me an error that 'Strtok is already defined' (Symbol already defined: strtok). Amazingly enough, I can't find strtok somewhere else, nor in the gamemode, nor in any of the includes.

Other then that, when I remove the stock strtok from the script, it gives me an error whenever I use strtok:
Код:
C:\Users\Hiddos\Hiddos\scripts\gamemodes\CODSW11.pwn(1955) : error 047: array sizes do not match, or destination array is too small
Any ideas?
Reply
#2

give then line , the strtok already defined error was hiding that error , so plz show line 1955

Btw i suggest using dcmd+sscanf which alot better , i can tell u how to deal with them , just pm me if u wanted
Reply
#3

Quote:
Originally Posted by Etch ❽ H
give then line , the strtok already defined error was hiding that error , so plz show line 1955

Btw i suggest using dcmd+sscanf which alot better , i can tell u how to deal with them , just pm me if u wanted
I find dcmd a bit less organized.

Line 1955:
pawn Код:
cmd = strtok(cmdtext,idx);
Reply
#4

then use zcmd, that error you got is saying you're trying to fit a big thing into a small thing
Reply
#5

Quote:
Originally Posted by cessil
then use zcmd, that error you got is saying you're trying to fit a big thing into a small thing
The only thing I'm asking is how it's possible that strtok is already defined.
Reply
#6

probably in an include
Reply
#7

Quote:
Originally Posted by cessil
probably in an include
I already checked them, and I only could find jb_strtok in JunkBuster. Unincluding it wouldn't help either.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)