One DCMD Command disable all the STRCMP cmds !
#4

Quote:
Originally Posted by admantis
Посмотреть сообщение
I think this happens because in the end of OnPlayerCommandText you have return 0; and in main gamemode return 1;
I have this in the FS:

pawn Код:
dcmd_v(playerid,params[])
{
                Blabla ...
        format(string, sizeof(string), "--> %s [Model ID: %d | Colours: %d,%d] has been spawned.", VehicleNames[car-400], car, colour1, colour2);
        return SendClientMessage(playerid, WHITE, string);
    }
in GM i have:

pawn Код:
if(strcmp(cmdtext,"/mycommand",true) == 0)
{
      //Do something here.
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)