Using GameTextForAll with a string doesn't work.
#2

ex usage: /gt b 1337

GameText out put: 1337

pawn Код:
COMMAND:gt(playerid, params[])
{
    new color[2], messageNumber;
    if(sscanf(params, "s[2]d", color, messageNumber)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /gt (color) (number message)");
    {
        new string[128];
        format(string, sizeof(string), "~%s~ %d", color, messageNumber);
        GameTextForAll(string, 1000, 4);
    }
    return 1;
}
Reply


Messages In This Thread
Using GameTextForAll with a string doesn't work. - by Biesmen - 09.05.2011, 14:00
Re: Using GameTextForAll with a string doesn't work. - by Laronic - 09.05.2011, 14:31
Re: Using GameTextForAll with a string doesn't work. - by Biesmen - 09.05.2011, 14:33
Re: Using GameTextForAll with a string doesn't work. - by Vince - 09.05.2011, 14:38
Re: Using GameTextForAll with a string doesn't work. - by Laronic - 09.05.2011, 14:47
Re: Using GameTextForAll with a string doesn't work. - by Biesmen - 09.05.2011, 14:50
Re: Using GameTextForAll with a string doesn't work. - by Vince - 09.05.2011, 14:56

Forum Jump:


Users browsing this thread: 3 Guest(s)