What is wrong with this
#1

like the title says: What is wrong with this

I got this
pawn Код:
if(strcmp(cmdtext,"/makepolice",idx ,true) == 0)
And i get this
Код:
warning 213: tag mismatch
The axact problem is this in the RED
Код:
if(strcmp(cmdtext,"/makepolice",idx ,true) == 0)
it works but it interrupts with other commands
HOW CAN I FIXED THIS?

.
Reply
#2

Anyone PLS help
Reply
#3

Try and remove the idx
Reply
#4

Indeed. Why you put idx there?
Reply
#5

because then the command doesn't work
the command is /makepolice (playerid) idx is the (playerid)
Reply
#6

That should be done later in the command, not there. Can't really remember I'm using DCMD now so yea, but the way you do it is wrong.

Recommend you use DCMD instead, a lot easier
Reply
#7

i know DCMD is eazyer but all my othe commands start
With
Код:
if(strcmp(cmdtext,".....
If i put the DCMD in will all of the commands work
Reply
#8

Use zcmd its more better.
Reply
#9

K i will try when i get home Thanks to all
Reply
#10

It should be 11 not idx, it's the character count, how many elements the array has (strings are char arrays).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)