20.05.2011, 07:04
You should use IsPlayerConnected or something similar to check if the player you're getting the name of is actually there .. Second, it serves absolutely no purpose to copy the name into another string (which is the wrong way to do it, by the way), because the name is already a string itself. Third: you should avoid using a foreign language to name your variables. I, for that matter, have no idea what the word 'uzvaretajs' would mean if you didn't tell me.
pawn Код:
if(GetPlayerName(i, uzvaretjs, sizeof(uzvaretajs)))
{
SendClientMessageToAll(COLOR_RED, uzvaretajs).
}