• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Message separator issue
#1
Hello,



I am having an issue with the code below - it only works once for one player which has the ascending player id - for other it will just bug out and send out 2 dots ".." completely not doing the work as previously for the asc. player id.



Code:
stock SendMessageToPlayer(playerid, color, text[], len = 124)

{

new

? ? text2[ 256 ],

maxstring = 384;



if(strlen(text) > len)

{

? ? strmid(text2, text, len, maxstring);

? ? strdel(text, len, maxstring);

? ? strins(text, " ..", len, maxstring);

? ? strins(text2, ".. ", 0, maxstring);

? ? SendClientMessage(playerid, color, text);

? ? SendClientMessage(playerid, color, text2);

? ? return 1;

}

else return SendClientMessage(playerid, color, text);

}
  Reply


Forum Jump: