Whats wrong here?
#4

This does not relate to your problem, however it does address a serious flaw in your coding.

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);
            }
        }
    }
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
Reply


Messages In This Thread
Whats wrong here? - by Luis- - 27.10.2010, 17:49
Re: Whats wrong here? - by MadeMan - 27.10.2010, 17:54
Re: Whats wrong here? - by Luis- - 27.10.2010, 17:58
Re: Whats wrong here? - by Calgon - 27.10.2010, 18:03
Re: Whats wrong here? - by MadeMan - 27.10.2010, 18:08
Re: Whats wrong here? - by Luis- - 27.10.2010, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)