[Projeto] Include JCMD
#1

jCMD

Eu Estava pensando: - Como Vou editar um GM de RPG se eu nгo sei mexer com strtok?
Ai Me Veio a Ideia de criar essa include, que nгo й nada mais que uma define, essa include й usada em 'OnPlayerCommandText' ou pode ser usada em 'OnPlayerText'.

pawn Код:
jCMD(Comando){/*Divide o comando do parametro ex:jCMD(kick)Obs: retorna o paramentro (depois do ' ') em jCMD_params*/
            return 1;
}
Cуdigo Aqui:
pawn Код:
new jCMD_params[256];
#define jCMD(%0)\
    strmid(jCMD_params,cmdtext,strlen(#/%0) +1,strlen(cmdtext),sizeof jCMD_params); \
    if(!strcmp(cmdtext,#/%0,true,strlen(#/%0))
Reply


Messages In This Thread
Include JCMD - by jonathan_scripter - 24.11.2012, 23:22
Re: Include JCMD - by Ouro - 24.11.2012, 23:37
Re: Include JCMD - by Sky™ - 24.11.2012, 23:42
Re: Include JCMD - by jonathan_scripter - 24.11.2012, 23:44
Re: Include JCMD - by Zona_Sky - 24.11.2012, 23:45
Re: Include JCMD - by leonardo1434 - 24.11.2012, 23:47
Re: Include JCMD - by Zona_Sky - 25.11.2012, 00:01
Re: Include JCMD - by jonathan_scripter - 25.11.2012, 00:04
Re: Include JCMD - by leonardo1434 - 25.11.2012, 00:11
Re: Include JCMD - by dPlaYer_ - 29.11.2012, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)