Thread: [Plugin] Pawn.CMD
View Single Post
Old 14/09/2019, 08:13 PM   #464
BoNNe
Little Clucker
 
Join Date: Jul 2018
Posts: 2
Reputation: 0
Default Re: Pawn.CMD

Guys, if all work fine (compile with 0 errors, load plugin without problem) and any command don't work, go to the gamemode and delete public OnPlayerCommandText(playerid, cmdtext[]) and try again.

PHP Code:
public OnPlayerCommandText(playeridcmdtext[]) {
    return 
1;

to
PHP Code:
public OnPlayerCommandReceived(playeridcmd[], params[], flags) {
    return 
1;
}
public 
OnPlayerCommandPerformed(playeridcmd[], params[], resultflags) {
    if(
result == -1) {
        
SendClientMessage(playerid0xFFFFFFFF"SERVER: Unknown command.");
        return 
0;
    }
    return 
1;

BoNNe is offline   Reply With Quote