[HELP] Argument Type Mismatch
#5

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
show
SendClientMessageEx
and
definition COLOR_GREY
Those are not the issue as I've successful used them in other commands.

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
Can you show the whole command?
Sure
PHP код:
command(acceptreleaseplayeridparams)
{
    if(!
IsADocGuard(playerid)) return SendClientMessageEx(playeridCOLOR_GREY"You must be a DOC Guard to use this command.");
    new 
id;
    
    if(
sscanf(params"u"id)) return SendClientMessageEx(playeridCOLOR_GREY"Usage: /acceptrelease [player]");
    
    if(
strfind(PlayerInfo[id][pPrisonReason], "[DNRL]"true) == -1)
    {
        new 
string[128];
        
ReleasePlayerFromPrison(playerid);
        
format(stringsizeof(string), "You have accepted %s's release request."GetPlayerNameEx(id));
        
SendClientMessageEx(playeridCOLOR_GREYstring);
    }
    else 
SendClientMessage(playeridCOLOR_GRAD1"You cannot use this command on an inmate who has not served their initial sentence.");
    return 
1;

Reply


Messages In This Thread
[HELP] Argument Type Mismatch - by BornHuman - 26.11.2015, 14:27
Re: [HELP] Argument Type Mismatch - by AbyssMorgan - 26.11.2015, 14:31
Re: [HELP] Argument Type Mismatch - by TwinkiDaBoss - 26.11.2015, 14:31
Re: [HELP] Argument Type Mismatch - by Crayder - 26.11.2015, 14:32
Re: [HELP] Argument Type Mismatch - by BornHuman - 26.11.2015, 14:32
Re: [HELP] Argument Type Mismatch - by AbyssMorgan - 26.11.2015, 14:34
Re: [HELP] Argument Type Mismatch - by BornHuman - 26.11.2015, 14:35
Re: [HELP] Argument Type Mismatch - by TwinkiDaBoss - 26.11.2015, 14:36
Re: [HELP] Argument Type Mismatch - by AbyssMorgan - 26.11.2015, 14:37
Re: [HELP] Argument Type Mismatch - by BornHuman - 26.11.2015, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)