problem!
#4

You can't use GetPlayerName in that way, nor can you use strings like that.

pawn Код:
if (strcmp("/afk", cmdtext, true, 10) == 0)
    {
        new string[ 64 ], Name[ MAX_PLAYER_NAME ];
        GetPlayerName( playerid, Name, sizeof( Name ) );
        format( string, sizeof( string ), "%s is AFK - They have been frozen to prevent being killed.", Name );
        TogglePlayerControllable( playerid, false );
        SendClientMessageToAll( COLOR_GREEN, string );
        return 1;
    }

Reply


Messages In This Thread
problem! - by [WF]Demon - 08.02.2010, 05:21
Re: problem! - by Flake. - 08.02.2010, 05:22
Re: problem! - by mansonh - 08.02.2010, 05:27
Re: problem! - by Calgon - 08.02.2010, 05:28

Forum Jump:


Users browsing this thread: 2 Guest(s)