14.05.2010, 01:53
Well, not really a problem but look, when player types in the chat he can only use 1 line and his words are getting cut after a certain spot, how can i make it 2 lines per typing in chat?
Thanks
Thanks
public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][LoggedIn] !=1) return SendClientMessage(playerid,COLOR_RED,"BLABLABLA");
new file[64],pName[24],s[64];
GetPlayerName(playerid,pName,24);
format(file,64,"Tags/%s.ini",pName);
if(!dini_Isset(file,"Tag"))
{
if(fexist(file))
{
format(s,64," %s [ID:%d]",text,playerid);
SendPlayerMessageToAll(playerid, s);
}
return 0;
}
else if(dini_Isset(file,"Tag"))
{
if(fexist(file))
{
format(s,64," %s [ID:%d| %s]",text,playerid,dini_Get(file,"Tag"));
SendPlayerMessageToAll(playerid, s);
return 1;
}
}
return 0;
}
format(s,64," %s [ID:%d]",text,playerid);