/me command errors
#2

PHP код:
CMD:me(playerid, params[])
{
    new
        
name    [ MAX_PLAYER_NAME ],
        
string    [ 128 ],
        
action    [ 100 ];
        
    if(
sscanf(params, "s[100]", action)) {
        
SendClientMessage(playerid, 0xAA3333AA, "[ERREUR]Utilise : /me [action]");
        return 
1;
    }
    else {
        
GetPlayerName(playerid, name, sizeof(name));
        
format(string, sizeof(string), "* %s %s", name, action);
        
SendClientMessage(playerid, -1, string);
    }
    return 
1;
} 
Reply


Messages In This Thread
/me command errors - by Eymeric69 - 29.05.2016, 16:09
Re: /me command errors - by luke49 - 29.05.2016, 16:16
Re: /me command errors - by IzadorO - 29.05.2016, 16:19
Re: /me command errors - by AlexBlack - 29.05.2016, 16:21
Re: /me command errors - by Eymeric69 - 29.05.2016, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)