27.10.2010, 18:03
This does not relate to your problem, however it does address a serious flaw in your coding.
Why have you created a string with the size of 257. You do not even use format to properly add any strings. You can simply add a client message without any formatting. Even so, the limit for chat messages is 128, not 256, not 257, the limit is 128.
https://sampforum.blast.hk/showthread.php?tid=55261
pawn Код:
if (dialogid == 20)
{
if(response)
{
new message[256+1];
if(listitem == 0)
{
format(message, 256, "You have selected Los Santos Airport!", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
SetPlayerPos(playerid, 1895.2489,-2333.6741,13.5469);
}
}
}
https://sampforum.blast.hk/showthread.php?tid=55261