04.07.2014, 20:07
Well, tell me how this is supposed to work and translate it step-to-step for a newbie like me.
Because the way I have understood it is :
PHP Code:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
if( success == 0 )
{
}
return SendClientMessage( playerid, COLOR, "Your new unknown command text" );
return 0;
}
PHP Code:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success ) // Entering the callback
{
if( success == 0 ) // If the command doesn't exist
{
// Do...nothing ?
}
return SendClientMessage( playerid, COLOR, "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;
}