gate problem
#1

hey, i have problem with my base gates. when i open the gates with command /egate, it open the second gate too( /egate2). can somebody please fix this? thank you.

http://pastebin.com/9wC43jh0
Reply
#2

Код:
if(strcmp("/egate2", cmdtext, true, 6) == 0)
Change the 6 to a 7.

When you type /egate this strcmp() will return true since "/egate2" contains "/egate".
Use a command processor like dcmd, zcmd, y_cmd, ... to prevent this kind of thing from happening
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)