17.01.2016, 17:42
A) You can't have two of a same callback, you can simply merge the code together so:
B) I really wish you would learn how to use ZCMD and sscanf instead of strcmp and strtok (Believe me it's way easier than learning to work with this method you are doing, the tutorial you are following is really outdated, look for +2013 ones so you would learn the power of ZCMD(or YCMD) and sscanf together.)
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/lspdadminset"))
{
//Your stuff here
}
else if(!strcmp(cmdtext, "/duty"))
{
//Your stuff here
}
return 0;
}