SA-MP Forums Archive
/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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /help command (/showthread.php?tid=95644)



/help command - bubka3 - 04.09.2009

Would This Work
Quote:

if(strcmp(cmd, "/help", true) == 0)
{
if(gPlayerLogged[playerid] != 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "[ ! ]/help job - For job commands");
return 1;
}
new helptopic = strval(tmp);
if(helptopic == job)
{
SendClientMessage(playerid, COLOR_PINK, "[ ! ] /help mechanic - For mechanic commands");
}
}
else
{
SendClientMessage(playerid, COLOR_ERROR, "[ ! ] You are not logged in!");
return 0;
}
}




Re: /help command - [HUN]Gamestar - 04.09.2009

Код:
if(helptopic == job)
Replace >>
Код:
if( !strcmp( tmp, "job", true ) )



Re: /help command - bubka3 - 04.09.2009

Thanks, cause some pointed out that wouldnt work so. Thx

Resloved