Silliest Question
#10

Quote:
Originally Posted by ss2119
Посмотреть сообщение
How To make Many Commands? And not that i Asked How To define Pragma
1. you put this up to your script
PHP код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 
2.under OnPlayerCommand..
PHP код:
dcmd(help,4,cmdtext); [b]4[/b] = the h-e-l-:
then
3.
PHP код:
dcmd_help(playerid,params[])
{
#pragma unused params
 
SendClientMessage(playerid,COLOR_RED,"Help Message");
return 
1;

Reply


Messages In This Thread
Silliest Question - by ss2119 - 10.11.2012, 09:56
Re: Silliest Question - by ss2119 - 10.11.2012, 10:12
Re: Silliest Question - by KingHual - 10.11.2012, 10:13
Re: Silliest Question - by Plovix - 10.11.2012, 10:21
Re: Silliest Question - by ss2119 - 10.11.2012, 10:22
Re: Silliest Question - by Alex Magaсa - 10.11.2012, 10:25
Re: Silliest Question - by KingHual - 10.11.2012, 10:29
Re: Silliest Question - by ss2119 - 10.11.2012, 10:30
Re: Silliest Question - by ss2119 - 10.11.2012, 10:32
Re: Silliest Question - by Alex Magaсa - 10.11.2012, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)