Scripting Problem, explanation requested.
#2

A) You can't have two of a same callback, you can simply merge the code together so:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
     if(!
strcmp(cmdtext"/lspdadminset"))
     {
     
//Your stuff here
     
}
     else if(!
strcmp(cmdtext"/duty"))
     {
     
//Your stuff here
     
}
     return 
0;

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.)
Reply


Messages In This Thread
Scripting Problem, explanation requested. - by DRP - 17.01.2016, 17:16
Re: Scripting Problem, explanation requested. - by PrO.GameR - 17.01.2016, 17:42
Re: Scripting Problem, explanation requested. - by DRP - 17.01.2016, 18:00
Re: Scripting Problem, explanation requested. - by -CaRRoT - 17.01.2016, 19:08
Re: Scripting Problem, explanation requested. - by DRP - 18.01.2016, 05:33

Forum Jump:


Users browsing this thread: 2 Guest(s)