/ban command error
#4

I recommend you not to use that useless stock everyone uses for getting the player's name because in case you need to use the name 5 times in a command (an example), you're going to call GetPlayerName 5 times.. the worst method I've ever seen.

Get it once and use it!

pawn Код:
#define GetName(%0) User_Name[%0]

// global:
new
    User_Name[ MAX_PLAYERS ][ MAX_PLAYER_NAME ]
;

// OnPlayerConnect:
GetPlayerName( playerid, User_Name[ playerid ], MAX_PLAYER_NAME );
Reply


Messages In This Thread
/ban command error - by dakata994 - 07.12.2013, 16:31
Re: /ban command error - by Wizzy951 - 07.12.2013, 16:34
Re: /ban command error - by iPrivate - 07.12.2013, 16:37
Re: /ban command error - by Konstantinos - 07.12.2013, 16:39
Re: /ban command error - by dakata994 - 07.12.2013, 16:39
Re: /ban command error - by Wizzy951 - 07.12.2013, 16:50

Forum Jump:


Users browsing this thread: 2 Guest(s)