31.10.2018, 18:00
same error same mistake, you should use GetPlayerName if you know player id, use the function i gave you find id by IsThisNameOnline which will return the ID, then use it to get player name for example
pawn Code:
new targetid = IsThisNameOnline(params);
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "This Player is not online");
new pname[MAX_PLAYER_NAME];
GetPlayerName(targetid, pname, sizeof(pname));

