/help command - 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: /help command (
/showthread.php?tid=563784)
/help command -
Dripac - 17.02.2015
Hello, i want to make a /help command like this, but with ZCMD. what do i have to change? It says undefined symbol cmdtext...
PHP Code:
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, RED, "Help Menu: |/help [name]|");
SendClientMessage(playerid, RED, "Name: Weapons");
return 1;
}
if(strcmp(x_nr,"weapons",true) == 0)
{
}
Thanks
Re: /help command -
JeaSon - 17.02.2015
example
pawn Code:
CMD:help(playerid, params[])
{
new x_nr[256];
if(sscanf(params, "s[256]",x_nr))
{
SendClientMessage(playerid, RED, "Help Menu: |/help [name]|");
SendClientMessage(playerid, RED, "Name: Weapons");
return 1;
}
if(strcmp(x_nr,"weapons",true) == 0)
{
// you code here
}
return 1;
}
AW: /help command -
Dripac - 17.02.2015
Thanks !