[Tutorial] "Server:Unknown Command" using ZCMD
#9

Well, tell me how this is supposed to work and translate it step-to-step for a newbie like me.

PHP Code:

public OnPlayerCommandPerformedplayeridcmdtext[ ], success 

    if( 
success == 
    { 
        
     } 
     return 
SendClientMessageplayeridCOLOR"Your new unknown command text" ); 
     return 
0

Because the way I have understood it is :

PHP Code:

public OnPlayerCommandPerformedplayeridcmdtext[ ], success )  // Entering the callback

    if( 
success == // If the command doesn't exist
    

        
// Do...nothing ?
     

     return 
SendClientMessageplayeridCOLOR"Your new unknown command text" ); // In any case, we have to return a message and to get a "warning : unrecheable code" for the return 0 placed just below.
     
return 0

Reply


Messages In This Thread
"Server:Unknown Command" using ZCMD - by Timeless - 04.07.2014, 01:26
Re: "Server:Unknown Command" using ZCMD - by KayJ - 04.07.2014, 08:09
Re: "Server:Unknown Command" using ZCMD - by Timeless - 04.07.2014, 09:51
Re: "Server:Unknown Command" using ZCMD - by sammp - 04.07.2014, 12:25
Re: "Server:Unknown Command" using ZCMD - by rockhopper - 04.07.2014, 14:42
Re: "Server:Unknown Command" using ZCMD - by greentarch - 04.07.2014, 14:49
Re : "Server:Unknown Command" using ZCMD - by S4t3K - 04.07.2014, 14:57
Re: Re : "Server:Unknown Command" using ZCMD - by Timeless - 04.07.2014, 19:16
Re : "Server:Unknown Command" using ZCMD - by S4t3K - 04.07.2014, 20:07
Re: Re : "Server:Unknown Command" using ZCMD - by Timeless - 04.07.2014, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)