Need help with this house system!
#8

The second parameter in the dcmd() function is length. This has to match the length of the command.

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
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
Reply


Messages In This Thread
Need help with this house system! - by Hade. - 17.01.2013, 14:45
Re: Need help with this house system! - by Jason_Dealley - 17.01.2013, 14:53
Re: Need help with this house system! - by Hade. - 17.01.2013, 14:54
Re: Need help with this house system! - by Hade. - 17.01.2013, 14:56
Re: Need help with this house system! - by Jason_Dealley - 17.01.2013, 14:58
Re: Need help with this house system! - by Hade. - 17.01.2013, 15:01
Re: Need help with this house system! - by Jason_Dealley - 17.01.2013, 15:03
Re: Need help with this house system! - by LarzI - 17.01.2013, 15:04
Re: Need help with this house system! - by Hade. - 17.01.2013, 15:06
Re: Need help with this house system! - by Hade. - 17.01.2013, 15:10

Forum Jump:


Users browsing this thread: 2 Guest(s)