17.01.2013, 15:04
The second parameter in the dcmd() function is length. This has to match the length of the command.
If you fix those, your commands should work.
_____
I should mention though: ZCMD is much easier and better than DCMD - I recommend using that instead.
Same with dINI; y_ini does everything dINI does, but much easier (at least in my opinion)
You should also learn how to correctly indent your code. The whole script is just a mess - you have no system in your lines. https://sampforum.blast.hk/showthread.php?tid=402743 Read this
pawn Код:
dcmd(majainfo,9,cmdtext); //this is 8 characters long, yet you've said it's 9
dcmd(sisene,5,cmdtext); //this is 6 characters long, yet you've said it's 5
dcmd(lahku,4,cmdtext); //4; should be 5
dcmd(uuendamaja,5,cmdtext); //5; should be 10
dcmd(lukusta,9,cmdtext); //9; should be 7
dcmd(vlukusta,11,cmdtext); //11; should be 8
dcmd(ostamaja,8,cmdtext); //correct
dcmd(mmaja,9,cmdtext); //9; should be 5
dcmd(katkestam,9,cmdtext); //correct
dcmd(tekitamaja,11,cmdtext); //11; should be 10
dcmd(eemaldamaja,12,cmdtext); //12; should be 11
_____
I should mention though: ZCMD is much easier and better than DCMD - I recommend using that instead.
Same with dINI; y_ini does everything dINI does, but much easier (at least in my opinion)
You should also learn how to correctly indent your code. The whole script is just a mess - you have no system in your lines. https://sampforum.blast.hk/showthread.php?tid=402743 Read this