Getting rid of SERVER: Unknown Command?
#1

Can you please tell me how to do that?

I tried return 1; and return 0; but no success.


My script:
http://pastebin.com/m9e71c9e
Reply
#2

Quote:
Originally Posted by rumbiic
Can you please tell me how to do that?

I tried return 1; and return 0; but no success.


My script:
http://pastebin.com/m9e71c9e
Can you please resend the code. instead of posting your whole GM.
Reply
#3

http://pastebin.com/m26784cd7

Here.

When I enter, for example, /count or /fix it says: SERVER: Unknown Command, but still does the function.
Reply
#4

at the end of public on player command

place
pawn Код:
return 0;
}
Reply
#5

Add a return 1 at the end of the command:

pawn Код:
if (strcmp(cmd, "/fix", true) ==0 )
    {
      if(PlayerInfo[playerid][pLevel] >= 1)
    {
            RepairVehicle(GetPlayerVehicleID(playerid));
        }
        else if(PlayerInfo[playerid][pLevel] < 1)
        {
            SendClientMessage(playerid,COLOR_GREY, "[Kluda:] Tev nav 1. limenis!");
        }
        return 1; // HERE
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)