29.11.2011, 15:31
sorryfor the double post but when i type /buyh { command to buy house } and /sellh { command to sell house }
i am getting these results :
--------------------------------------
---------------------------------------
i use dcmd as the command processer ...
by the way i kept the dcmd commands as follows
:
that is in between some strcmp commands at onplayercommandtext .... plz some experienced scripters help...i dont have time cracking this nut....
i am getting these results :
--------------------------------------
Quote:
[22:04:47] You have sold your house! [22:04:47] SERVER: Unknown command. [22:04:51] You have bought the house! [22:04:51] SERVER: Unknown command. |
i use dcmd as the command processer ...
by the way i kept the dcmd commands as follows
:
Код:
if (strcmp("/tmenu", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, TMENU, DIALOG_STYLE_LIST, "Teleport Categories", "Los Santos\nSan Fierro\nLas Venturas\nOther", "Select", "Cancel"); return 1; } //DCMD COMMANDS dcmd(buyh,4,cmdtext); dcmd(sellh,5,cmdtext); dcmd(enterh,6,cmdtext); dcmd(exith,5,cmdtext); dcmd(lockh,5,cmdtext); dcmd(unlockh,7,cmdtext); dcmd(setrent,7,cmdtext); dcmd(rent,4,cmdtext); dcmd(unrent,6,cmdtext); dcmd(househelp,9,cmdtext); dcmd(housestats,10,cmdtext); dcmd(getrent,7,cmdtext); dcmd(payrent,7,cmdtext); if (!strcmp("/credits", cmdtext, true)) {.................................