10.03.2011, 18:01
Hello there!
In my GM i have script to send ID and "realName" to chat, when i type something. This is my code:
So, it's working, but only sometimes. I was today on my server with friend.When he typed, i saw the ID, but when i tryed it, It returns 1 (i think, becouse i did not see any ID)
Does someone think, where's the problem?
(Sorry for poor english. I'm from Slovakia
)
In my GM i have script to send ID and "realName" to chat, when i type something. This is my code:
Код:
public OnPlayerText(playerid, text[])
{
new str[128];
if(!strlen(player[playerid][realnick]))
format(str,128,"{%s}%s (%d):{FFFFFF} %s",Colors[player[playerid][povolanie]],meno(playerid),playerid,text);
else
format(str,128,"{%s}%s (%d):{FFFFFF} %s",Colors[player[playerid][povolanie]],player[playerid][realnick],playerid,text);
SendClientMessageToAll(0xFFFFFFFF,str);
return 0;
}
Does someone think, where's the problem?
(Sorry for poor english. I'm from Slovakia
)

