/help command
#1

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;
}
}

Reply
#2

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

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

Resloved
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)