What is wrong with this - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What is wrong with this (
/showthread.php?tid=158955)
What is wrong with this -
park4bmx - 11.07.2010
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?
.
Re: What is wrong with this -
park4bmx - 11.07.2010
Anyone PLS help
Re: What is wrong with this -
oliverrud - 11.07.2010
Try and remove the idx
Re: What is wrong with this -
RyDeR` - 11.07.2010
Indeed. Why you put idx there?
Re: What is wrong with this -
park4bmx - 11.07.2010
because then the command doesn't
work
the command is
/makepolice (playerid) idx is the (
playerid)
Re: What is wrong with this -
oliverrud - 11.07.2010
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
Re: What is wrong with this -
park4bmx - 12.07.2010
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
Re: What is wrong with this -
FreshKilla - 12.07.2010
Use zcmd its more better.
Re: What is wrong with this -
park4bmx - 12.07.2010
K i will try when i get home
Thanks to all
Re: What is wrong with this -
Donny_k - 12.07.2010
It should be 11 not idx, it's the character count, how many elements the array has (strings are char arrays).