undefined symbol "idx"
#7

Since... I made this thing... http://pastebin.com/gN3mB3rq... I will help.

So now, make sure you have strtok. Then under: OnPlayerCommandText, Add this:

pawn Код:
new cmd[128];
new idx;
cmd = strtok(cmdtext, idx);
then... Don't follow anyone's suggestion... (Will make it worse)

Change

pawn Код:
if(strcmp(cmdtext, "/cc", true) == 0)
to:

pawn Код:
if(strcmp(cmd, "/cc", true) == 0) //Notice 'cmdtext' and 'cmd'
EDIT:
Hope I helped + Please 'indent' my script because of Pastebin.com error :>
Reply


Messages In This Thread
undefined symbol "idx" - by SamiHam - 07.07.2012, 06:48
Re: undefined symbol "idx" - by M3mPHi$_S3 - 07.07.2012, 06:51
Re: undefined symbol "idx" - by [MM]RoXoR[FS] - 07.07.2012, 07:04
Re: undefined symbol "idx" - by SamiHam - 07.07.2012, 07:12
Re: undefined symbol "idx" - by [MM]RoXoR[FS] - 07.07.2012, 07:24
Re: undefined symbol "idx" - by SamiHam - 07.07.2012, 07:42
Re: undefined symbol "idx" - by Deathlane - 07.07.2012, 09:46

Forum Jump:


Users browsing this thread: 1 Guest(s)