gate problem - 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)
+--- Thread: gate problem (
/showthread.php?tid=405332)
gate problem -
fireboy - 06.01.2013
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
Re: gate problem -
Sinner - 06.01.2013
Код:
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