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

Quote:
Originally Posted by S4t3K
View Post
@Author : Some parts of your "COMMON ERRORS" are very bad coded.

I take this code as an example :

pawn Code:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    if( success == 0 )
    {
       
     }
     return SendClientMessage( playerid, COLOR, "Your new unknown command text" );
     return 0;
}
It won't work as a solution ! You'll even get an error during the compilation !

This one would work :

pawn Code:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    if(!success) return SendClientMessage( playerid, COLOR, "Your new unknown command text" );
    return 1;
}

Correct your whole tutorial please.
FYI the errors i have there are common mistakes i picked up from other help request threads not my codes. meaning people make common mistakes duh every code i placed there was tested before placing, its my method of coding that works, i share my work.if u test it the way i said it wud turn out exactly as i said in conclusion everything is placed the way it should be.
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)