DCMD error - 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: DCMD error (
/showthread.php?tid=73237)
DCMD error -
NtCat - 13.04.2009
Hi. Iґve got this in my code, in OnPlayerCommandText(playerid, cmdtext[]):
Код:
dcmd(buyticket, 9, cmdtext);
And I get error:
Код:
G:\LS to LV metro - SAMP\ls-lv-underground.pwn(146) : error 035: argument type mismatch (argument 2) // 146 is that line dcmd(buyticket...)
I also have this in code:
Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Whereґs the problem? Thanks.