Problem /me
#8

The ZCMD commands should not be inside any callbacks. You have to use or strcmp or ZCMD. Choose on of them.
pawn Код:
// I guess this is your code
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/despawned", true) == 0)
    {
        currentveh = GetPlayerVehicleID(playerid);
        DestroyVehicle(currentveh);
        SendClientMessage(playerid, COLOR_MESSAGGI,"[Acmd:] Hai eliminato questo veicolo");
        return 1;
    }
   
    COMMAND:me(playerid, params[])
    {
        new
            string[ 128 ], Name[ MAX_PLAYER_NAME ];
           
        GetPlayerName(playerid, Name, sizeof(Name));
        if(isnull(params)) return SendClientMessage(playerid, COLOR, "Usage: /me <Text>");
        format(string, sizeof(string), "*%s %s", Name, params);
        return SendClientMessageToAll(0xFF00FFFF, string);
    }
    return 0;
}
This is wrong. The commands with ZCMD out of any Callback and don't use OnPlayerCommandText Callback.
Reply


Messages In This Thread
Problem /me - by Davman - 14.01.2012, 19:25
Re: Problem /me - by iGetty - 14.01.2012, 19:27
Re: Problem /me - by Davman - 14.01.2012, 19:35
Re: Problem /me - by Steven82 - 14.01.2012, 19:36
Re: Problem /me - by Davman - 14.01.2012, 19:43
Re: Problem /me - by Bogdan1992 - 14.01.2012, 19:45
Re: Problem /me - by Davman - 14.01.2012, 20:13
Re: Problem /me - by Konstantinos - 14.01.2012, 20:30
Re: Problem /me - by milanosie - 14.01.2012, 20:45
Re: Problem /me - by Davman - 14.01.2012, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)