players Commands
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    if( !success )
    {
        new
            msg_[ 64 ]
        ;
        format( msg_, sizeof( msg_ ), "The command \"%s\" does not exist", cmdtext );
        SendClientMessage( playerid, -1, msg_ );
    }
    return 1;
}
Thank you sir and sorry for ur time but i got this errors

Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    new
        msg_[ 64 ],
        name_[ MAX_PLAYER_NAME ]
    ;
    GetPlayerName( playerid, name_, MAX_PLAYER_NAME );
    format( msg_, sizeof( msg_ ), "%s used: %s", name_, cmdtext );
    // SendMessageToAdmins or if you have any function to do that..
    // OR ELSE.. USE:
    for(new i = 0; i < MAX_PLAYERS; i++ )
    {
        if( !IsPlayerConnected( i ) || if( IsPlayerAdmin( i )) continue;
        // Change pInfo[ i ][ pAdmin ] to what you use for admins' levels
        SendClientMessage( i, 0xFFFF00FF, msg_ )
    }
    return 1;
}
Код:
C:\Users\John\Desktop\Server\gamemodes\FristGM.pwn(651) : error 029: invalid expression, assumed zero
C:\Users\John\Desktop\Server\gamemodes\FristGM.pwn(651) : error 001: expected token: ";", but found "continue"
C:\Users\John\Desktop\Server\gamemodes\FristGM.pwn(653) : warning 225: unreachable code
C:\Users\John\Desktop\Server\gamemodes\FristGM.pwn(654) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply


Messages In This Thread
players Commands - by BoU3A - 07.10.2013, 11:17
Re: players Commands - by Konstantinos - 07.10.2013, 11:28
Re: players Commands - by x96664 - 07.10.2013, 11:29
Re: players Commands - by BoU3A - 08.10.2013, 12:38
Re: players Commands - by Konstantinos - 08.10.2013, 12:50
Re: players Commands - by iFiras - 08.10.2013, 12:55
Re: players Commands - by BoU3A - 09.10.2013, 11:42
Re: players Commands - by iFiras - 09.10.2013, 11:47
Re: players Commands - by TomatoRage - 09.10.2013, 11:48
Re: players Commands - by Konstantinos - 09.10.2013, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)