What command system should I use.
#7

Quote:
Originally Posted by Mattakil
Посмотреть сообщение
strcmp is just a pain in the ass to script, it does however work fine. In the future, you should use zcmd, to convert strcmp commands into something zcmd can read, replace
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
with
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
No, no, no, no, no, no, no!!!

You've not done a damn thing there. That's just being lazy! The whole point of ZCMD/y_commands is to AVOID using strcmp in commands! You're supposed to use sscanf, or other similar libraries. Adding strcmp still bogs down your speed and basically defeats the purpose of even switching your command processor.
Reply


Messages In This Thread
What command system should I use. - by Jachu - 01.02.2014, 16:27
Re: What command system should I use. - by Nourdin - 01.02.2014, 16:32
Re: What command system should I use. - by Equuuuin0X - 01.02.2014, 16:41
Re: What command system should I use. - by DaniceMcHarley - 01.02.2014, 16:43
Re: What command system should I use. - by Scenario - 01.02.2014, 16:47
Re: What command system should I use. - by Mattakil - 01.02.2014, 16:51
Re: What command system should I use. - by Scenario - 01.02.2014, 16:58
Re: What command system should I use. - by Mattakil - 01.02.2014, 17:06
Re: What command system should I use. - by PowerPC603 - 01.02.2014, 17:16
Re: What command system should I use. - by SpaMaster - 01.02.2014, 17:46

Forum Jump:


Users browsing this thread: 1 Guest(s)